public btnImportSchema() { base.Id = (this.name); base.Name = (this.name); base.Text = (this.name); base.IsEnabled = (true); base.Image = (ArcGISRibbon.loadImage(this.smallImageName)); base.LargeImage = (ArcGISRibbon.loadImage(this.largeImageName)); base.Size = (this.btnsize); base.ShowImage = (true); base.ShowText = (false); base.Orientation = (Orientation.Vertical); base.KeyTip = ("This is a keytip"); base.ToolTip = (ArcGISRibbon.createToolTip(this.tooltipTitle, this.tooltipDescr)); base.CommandHandler = (new btnImportSchema.btn_CommandHandler()); base.HelpSource = (ArcGISRibbon.HelpPath); }
public btnPlaceLine() { base.Id = (this.name); base.Name = (this.name); base.Text = (this.name); base.IsEnabled = (true); base.Image = (ArcGISRibbon.loadImage(this.smallImageName)); base.LargeImage = (ArcGISRibbon.loadImage(this.largeImageName)); base.Size = (this.btnsize); base.ShowImage = (true); base.ShowText = (this.showTextUnderButton); base.Orientation = (this.orientation); base.KeyTip = ("This is a keytip"); base.ToolTip = (ArcGISRibbon.createToolTip(this.tooltipTitle, this.tooltipDescr)); base.CommandHandler = (new btnPlaceLine.btn_CommandHandler()); base.HelpSource = (ArcGISRibbon.HelpPath); }
public btnTransparencyPercent(string text, int value, RibbonToolTip toolTip) { base.Id = (text); base.Name = (text); base.Text = (text); base.IsEnabled = (true); this.PercentValue = value; base.Size = (this.btnsize); base.ShowImage = (false); base.ShowText = (true); base.IsCheckable = (true); base.Image = (ArcGISRibbon.loadImage(this.smallImageName)); base.ToolTip = (Utility.CloneObject(toolTip)); base.CommandHandler = (new btn_TransparencyCommandHandler()); base.HelpSource = (ArcGISRibbon.HelpPath); base.ResizeStyle = (RibbonItemResizeStyles)(1); }
public btnTransparency() { //base.Id=(this.name); //base.Name=(this.name); //base.Text=(this.name); //base.IsEnabled=(true); //base.add_DropDownOpened(new EventHandler<EventArgs>(this.btnTransparency_DropDownOpened)); //base.Image=(ArcGISRibbon.loadImage(this.smallImageName)); //base.LargeImage=(ArcGISRibbon.loadImage(this.largeImageName)); //base.Size=(this.btnsize); //base.ShowImage=(true); //base.ShowText=(false); //base.Orientation=(this.orientation); //base.KeyTip=("This is a keytip"); //base.ToolTip=(ArcGISRibbon.createToolTip(this.tooltipTitle, this.tooltipDescr)); //base.CommandHandler=(new btn_TransparencyCommandHandler()); //base.HelpSource=(ArcGISRibbon.HelpPath); //base.set_ListButtonStyle(0); //RibbonRowPanel ribbonRowPanel = new RibbonRowPanel(); //ribbonRowPanel.set_GroupName(AfaStrings.RBN_BTN_TRANSPARENCY); //this.btn100 = new btnTransparencyPercent("100%", 100, (RibbonToolTip)base.get_ToolTip()); //ribbonRowPanel.Items.Add(this.btn100); //base.Items.Add(this.btn100); //this.btn90 = new btnTransparencyPercent("90%", 90, (RibbonToolTip)base.get_ToolTip()); //ribbonRowPanel.Items.Add(this.btn90); //base.Items.Add(this.btn90); //this.btn80 = new btnTransparencyPercent("80%", 80, (RibbonToolTip)base.get_ToolTip()); //ribbonRowPanel.Items.Add(this.btn80); //base.Items.Add(this.btn80); //this.btn70 = new btnTransparencyPercent("70%", 70, (RibbonToolTip)base.get_ToolTip()); //ribbonRowPanel.Items.Add(this.btn70); //base.Items.Add(this.btn70); //this.btn60 = new btnTransparencyPercent("60%", 60, (RibbonToolTip)base.get_ToolTip()); //ribbonRowPanel.Items.Add(this.btn60); //base.Items.Add(this.btn60); //this.btn50 = new btnTransparencyPercent("50%", 50, (RibbonToolTip)base.get_ToolTip()); //ribbonRowPanel.Items.Add(this.btn50); //base.Items.Add(this.btn50); //this.btn40 = new btnTransparencyPercent("40%", 40, (RibbonToolTip)base.get_ToolTip()); //ribbonRowPanel.Items.Add(this.btn40); //base.Items.Add(this.btn40); //this.btn30 = new btnTransparencyPercent("30%", 30, (RibbonToolTip)base.get_ToolTip()); //ribbonRowPanel.Items.Add(this.btn30); //base.Items.Add(this.btn30); //this.btn20 = new btnTransparencyPercent("20%", 20, (RibbonToolTip)base.get_ToolTip()); //ribbonRowPanel.Items.Add(this.btn20); //base.Items.Add(this.btn20); //this.btn10 = new btnTransparencyPercent("10%", 10, (RibbonToolTip)base.get_ToolTip()); //ribbonRowPanel.Items.Add(this.btn10); //base.Items.Add(this.btn10); //this.btn0 = new btnTransparencyPercent("0%", 0, (RibbonToolTip)base.get_ToolTip()); //ribbonRowPanel.Items.Add(this.btn0); //base.Items.Add(this.btn0); this.name = AfaStrings.RBN_BTN_TRANSPARENCY; this.tooltipTitle = AfaStrings.RBN_BTN_TRANSPARENCY_TOOLTIP_TITLE; this.tooltipDescr = AfaStrings.RBN_BTN_TRANSPARENCY_TOOLTIP; this.smallImageName = "img_transparency_small"; this.largeImageName = "img_transparency_large"; this.orientation = Orientation.Vertical; base.Id = this.name; base.Name = this.name; base.Text = this.name; base.IsEnabled = true; base.DropDownOpened += new EventHandler <EventArgs>(this.btnTransparency_DropDownOpened); base.Image = ArcGISRibbon.loadImage(this.smallImageName); base.LargeImage = ArcGISRibbon.loadImage(this.largeImageName); base.Size = this.btnsize; base.ShowImage = true; base.ShowText = false; base.Orientation = this.orientation; base.KeyTip = "This is a keytip"; base.ToolTip = ArcGISRibbon.createToolTip(this.tooltipTitle, this.tooltipDescr); base.CommandHandler = (new btn_TransparencyCommandHandler()); base.HelpSource = ArcGISRibbon.HelpPath; base.ListButtonStyle = RibbonListButtonStyle.SplitButton; RibbonRowPanel panel = new RibbonRowPanel { GroupName = AfaStrings.RBN_BTN_TRANSPARENCY }; this.btn100 = new btnTransparencyPercent("100%", 100, (RibbonToolTip)base.ToolTip); panel.Items.Add(this.btn100); base.Items.Add(this.btn100); this.btn90 = new btnTransparencyPercent("90%", 90, (RibbonToolTip)base.ToolTip); panel.Items.Add(this.btn90); base.Items.Add(this.btn90); this.btn80 = new btnTransparencyPercent("80%", 80, (RibbonToolTip)base.ToolTip); panel.Items.Add(this.btn80); base.Items.Add(this.btn80); this.btn70 = new btnTransparencyPercent("70%", 70, (RibbonToolTip)base.ToolTip); panel.Items.Add(this.btn70); base.Items.Add(this.btn70); this.btn60 = new btnTransparencyPercent("60%", 60, (RibbonToolTip)base.ToolTip); panel.Items.Add(this.btn60); base.Items.Add(this.btn60); this.btn50 = new btnTransparencyPercent("50%", 50, (RibbonToolTip)base.ToolTip); panel.Items.Add(this.btn50); base.Items.Add(this.btn50); this.btn40 = new btnTransparencyPercent("40%", 40, (RibbonToolTip)base.ToolTip); panel.Items.Add(this.btn40); base.Items.Add(this.btn40); this.btn30 = new btnTransparencyPercent("30%", 30, (RibbonToolTip)base.ToolTip); panel.Items.Add(this.btn30); base.Items.Add(this.btn30); this.btn20 = new btnTransparencyPercent("20%", 20, (RibbonToolTip)base.ToolTip); panel.Items.Add(this.btn20); base.Items.Add(this.btn20); this.btn10 = new btnTransparencyPercent("10%", 10, (RibbonToolTip)base.ToolTip); panel.Items.Add(this.btn10); base.Items.Add(this.btn10); this.btn0 = new btnTransparencyPercent("0%", 0, (RibbonToolTip)base.ToolTip); panel.Items.Add(this.btn0); base.Items.Add(this.btn0); }