public PropertiesFormInt32(EditableProperty property, Widget parent) : base(property, parent, "Anomalous.GuiFramework.Editor.GUI.PropertiesForm.PropertiesFormTextBox.layout") { widget.ForwardMouseWheelToParent = true; TextBox textBox = (TextBox)widget.findWidget("TextBox"); textBox.Caption = property.getValue(0); textBox.ForwardMouseWheelToParent = true; num = new Int32NumericEdit((EditBox)widget.findWidget("EditBox")); num.Value = (Int32)property.getRealValue(1); num.ValueChanged += new MyGUIEvent(editBox_ValueChanged); }
public PropertiesFormIntSize2(EditableProperty property, Widget parent) : base(property, parent, "Anomalous.GuiFramework.Editor.GUI.PropertiesForm.PropertiesFormWidthHeight.layout") { widget.ForwardMouseWheelToParent = true; TextBox textBox = (TextBox)widget.findWidget("TextBox"); textBox.Caption = property.getValue(0); textBox.ForwardMouseWheelToParent = true; IntSize2 value = (IntSize2)property.getRealValue(1); width = new Int32NumericEdit((EditBox)widget.findWidget("Width")); width.Value = value.Width; width.ValueChanged += new MyGUIEvent(editBox_ValueChanged); height = new Int32NumericEdit((EditBox)widget.findWidget("Height")); height.Value = value.Height; height.ValueChanged += new MyGUIEvent(editBox_ValueChanged); }