public ToolBarButton() { this.enabled = true; this.visible = true; this.commandId = -1; this.style = ToolBarButtonStyle.PushButton; this.stringIndex = (IntPtr)(-1); }
public ToolBarButton() { this.enabled = true; this.visible = true; this.commandId = -1; this.style = ToolBarButtonStyle.PushButton; this.stringIndex = (IntPtr) (-1); }
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); }
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); }
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); }