コード例 #1
0
 public PropertiesFormLayoutComponent(EditableProperty property, Widget parent, String layoutFile)
     : base(layoutFile)
 {
     this.editableProperty = property;
     layoutContainer       = new MyGUILayoutContainer(widget);
     widget.attachToWidget(parent);
 }
コード例 #2
0
 public NavigationButton(Button button)
 {
     this.button              = button;
     button.MouseButtonClick += new MyGUIEvent(button_MouseButtonClick);
     button.UserObject        = this;
     Layout = new MyGUILayoutContainer(button);
     Action = null;
 }
コード例 #3
0
 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);
 }
コード例 #4
0
 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);
 }