public PropertiesFormLayoutComponent(EditableProperty property, Widget parent, String layoutFile) : base(layoutFile) { this.editableProperty = property; layoutContainer = new MyGUILayoutContainer(widget); widget.attachToWidget(parent); }
public NavigationButton(Button button) { this.button = button; button.MouseButtonClick += new MyGUIEvent(button_MouseButtonClick); button.UserObject = this; Layout = new MyGUILayoutContainer(button); Action = null; }
public PropertiesFormCheckBox(EditableProperty property, Widget parent) { this.editableProperty = property; checkButton = new CheckButton((Button)parent.createWidgetT("Button", "CheckBox", 0, 0, 100, 25, Align.Default, "")); checkButton.Button.Caption = property.getValue(0); checkButton.Button.ForwardMouseWheelToParent = true; checkButton.Checked = (bool)property.getRealValue(1); checkButton.CheckedChanged += new MyGUIEvent(checkButton_CheckedChanged); layoutContainer = new MyGUILayoutContainer(checkButton.Button); }
public PropertiesFormButton(EditInterface editInterface, EditInterfaceCommand command, GuiFrameworkUICallback uiCallback, Widget parent) { this.editInterface = editInterface; this.uiCallback = uiCallback; this.command = command; button = (Button)parent.createWidgetT("Button", "Button", 0, 0, ButtonWidth, ButtonHeight, Align.Default, ""); button.Caption = command.Name; button.ForwardMouseWheelToParent = true; layoutContainer = new MyGUILayoutContainer(button); button.MouseButtonClick += new MyGUIEvent(button_MouseButtonClick); }