public ButtonHandler() { Control = new EtoButton { Handler = this, Cell = new EtoButtonCell(), Title = string.Empty, BezelStyle = NSBezelStyle.Rounded, ImagePosition = NSCellImagePosition.ImageLeft }; Control.SetButtonType(NSButtonType.MomentaryPushIn); Control.Activated += HandleActivated; }
public ButtonHandler() { Control = new EtoButton { Handler = this }; Control.Cell = new MyButtonCell(); Control.Title = string.Empty; Control.SetButtonType(NSButtonType.MomentaryPushIn); Control.BezelStyle = NSBezelStyle.Rounded; Control.SetFrameSize(Generator.ConvertF(Button.DefaultSize)); Control.Activated += delegate { Widget.OnClick(EventArgs.Empty); }; }
public ButtonHandler() { Control = new EtoButton { Handler = this, Cell = new EtoButtonCell(), Title = string.Empty, BezelStyle = NSBezelStyle.Rounded, ImagePosition = NSCellImagePosition.ImageLeft }; defaultSize = Button.DefaultSize; Control.SetButtonType(NSButtonType.MomentaryPushIn); Control.SetFrameSize(defaultSize.ToSDSizeF()); Control.Activated += HandleActivated; SetBezel(); }