public JwButton AddButton(String s, EventHandler ev) { JwButton b = new JwButton(); b.Text = s; b.Click += ev; Add(b); return b; }
public static JwButton MakeButton( String text, EventHandler ev ) { JwButton c = new JwButton(); c.SetPreferredSize( new Size(VmUiUtility.ScaleToResolution(50), BUTTON_HEIGHT)); c.Text = text; c.Click += ev; return c; }
public static JwButton MakeButton( String text, int width, EventHandler ev ) { JwButton c = new JwButton(); c.Text = text; c.Width = width; c.Height = ScaleToResolution(VmUiBuilder.GetButtonHeight()); c.Click += ev; return c; }
//# __________ PROTOCOL :: CONTSTRUCTOR __________ #// public JwTwinButton(JwButton leftButton, JwButton rightButton, int gap, int height) { leftButton.Height = height; rightButton.Height = height; leftButton.SetPreferredSize( new Size(0, height)); rightButton.SetPreferredSize( new Size(0, height)); LeftButton = leftButton; RightButton = rightButton; JwHorizontalLayout p = new JwHorizontalLayout(); p.Gap = gap; p.ControlWidth.BeFill(); p.Add(LeftButton); p.Add(RightButton); SetMargin( new JwMargin(0, 0, 0, 4)); Add(p); }
public override Control GetControl() { JwVerticalLayout e = new JwVerticalLayout(); JwButton showButton, hideButton; e = new JwVerticalLayout(); showButton = new JwButton(); showButton.Text = "Show"; showButton.Click += new EventHandler(ShowLabel); hideButton = new JwButton(); hideButton.Text = "Hide"; hideButton.Click += new EventHandler(HideLabel); wrapper = new JwVisibilityWrapper(new JwLabel("dog"), true); e.Add(showButton); e.Add(wrapper); e.Add(hideButton); return e; }
public Control MakeStartButton() { _startButton = VmUiBuilder.MakeButton( "Start", StartButtonClick); return new JwEmptyBorder(_startButton, new JwMargin(0, 0, 0, 3)); }
public Control MakeDoneButtonPanel() { _doneButton = VmUiBuilder.MakeButton("Done", DoneButtonClick); return new JwEmptyBorder(_doneButton, new JwMargin(0, 0, 4, 4)); }
public void AddButton( JwButton b, int tabOrderIndex, JwTabOrder.ButtonGotFocusType ev) { _tabOrder.Add(b, tabOrderIndex, ev); }