コード例 #1
0
		protected override void CreateHandle()
		{
			ButtonHelper bh = new ButtonHelper();
			m_view = bh;
			bh.Host = this;
			bh.SetButtonType(NSButtonType.Switch);
		}
コード例 #2
0
		protected override void CreateHandle ()
		{
			ButtonHelper helper = new ButtonHelper();
      		m_view = helper;
			helper.Font = Font.ToNsFont();
			helper.Host = this;
			helper.BezelStyle = NSBezelStyle.Rounded;
			
			helper.Activated += delegate(object sender, EventArgs e) {
					OnClick(e);
			};
			helper.Frame = new NSRect(0, 0, 100, 25);
			helper.ScaleUnitSquareToSize(Util.ScaleSize);
		}