コード例 #1
0
 public ToolBarButton()
 {
     this.enabled     = true;
     this.visible     = true;
     this.commandId   = -1;
     this.style       = ToolBarButtonStyle.PushButton;
     this.stringIndex = (IntPtr)(-1);
 }
コード例 #2
0
 public ToolBarButton()
 {
     this.enabled = true;
     this.visible = true;
     this.commandId = -1;
     this.style = ToolBarButtonStyle.PushButton;
     this.stringIndex = (IntPtr) (-1);
 }
コード例 #3
0
        public int AddButton(string text, Image image, string imagekey, ToolBarButtonStyle style)
        {
            int index = Buttons.Add(text);

            if (IL.Images[imagekey] == null)
            {
                IL.Images.Add(imagekey, image);
            }

            Buttons[index].ImageKey = imagekey;
            Buttons[index].Style    = style;

            return(index);
        }
コード例 #4
0
        public int AddButton(string name, string text, Image image, string imagekey, ToolBarButtonStyle style, Menu menu)
        {
            int index = Buttons.Add(text);

            if (IL.Images[imagekey] == null)
            {
                IL.Images.Add(imagekey, image);
            }

            Buttons[index].Name         = name;
            Buttons[index].ImageKey     = imagekey;
            Buttons[index].Style        = style;
            Buttons[index].DropDownMenu = menu;

            return(index);
        }
コード例 #5
0
ファイル: xScreen.cs プロジェクト: thuyps/vnchart_windows
        public ToolBarButton addToolbarButton(int buttonID, int imgIndex, String text, ToolBarButtonStyle style, bool pushed)
        {
            ToolBarButton tb = new ToolBarButton();

            tb.Text       = text;
            tb.Tag        = (Int32)buttonID;
            tb.ImageIndex = imgIndex;
            tb.Style      = style;
            tb.Pushed     = pushed;

            mainToolbar.Buttons.Add(tb);

            return(tb);
        }