public void SetDefaults() { clickStyle = ButtonClickStyle.kButtonClick_ThrobAndGo; actionId = FrontEndActions.kFrontEndAction_None; makeClickableWhenShown = false; flagClicked = false; clickedOneFrame = false; wasPressed = false; }
public ButtonControl() { this._MetorColor = Color.FromArgb(0xb8, 0xcb, 0xd9); this._MoveColor = Color.FromArgb(130, 0xb5, 0xd9); this._ClickStyle = ButtonClickStyle.System; this._clickText = string.Empty; this._IconName = string.Empty; this._DockColumn = 1; this.rectMsg = Rectangle.Empty; this.rectChange = Rectangle.Empty; this.OldPoint = Point.Empty; this.Cursor = Cursors.Hand; this.rectMsg = new Rectangle(base.Width - 20, 0, 20, 20); this.rectChange = new Rectangle(0, base.Height - 20, 20, 20); base.SetStyle(ControlStyles.StandardClick, true); base.SetStyle(ControlStyles.OptimizedDoubleBuffer, true); }
} ///@property(readwrite,assign) int myId; public void SetClickStyle(ButtonClickStyle inThing) { clickStyle = inThing; } ///@property(readwrite,assign) ButtonClickStyle clickStyle;