コード例 #1
0
ファイル: ButtonHandler.cs プロジェクト: CheckTech/Eto
 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;
 }
コード例 #2
0
ファイル: ButtonHandler.cs プロジェクト: modulexcite/Eto-1
 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);
     };
 }
コード例 #3
0
 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();
 }