• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C# Forms.ToolStripButton类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中System.Windows.Forms.ToolStripButton的典型用法代码示例。如果您正苦于以下问题:C# ToolStripButton类的具体用法?C# ToolStripButton怎么用?C# ToolStripButton使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



ToolStripButton类属于System.Windows.Forms命名空间,在下文中一共展示了ToolStripButton类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: OnBarUpdate

        protected override void OnBarUpdate()
        {
            if (ChartControl == null || _x )
                return;
            if (!ChartControl.Controls.ContainsKey("TSEco_News"))
            {
                _myitem0 = new ToolStripSeparator();
                _myitem0.Name = "TradingStudiesEcoSeparator";

                _myitem1 = new ToolStripButton("Hide News");
                _myitem1.Text = "Hide News";
                _myitem1.Name = "TradingStudiesEcoNews";
                _myitem1.Click += ToolClick1;
                _myitem1.Enabled = true;
                _myitem1.ForeColor = Color.Black;
                _mystrip = (ToolStrip) ChartControl.Controls["tsrTool"];
                _mystrip.Items.Add(_myitem0);
                _mystrip.Items.Add(_myitem1);

                _sp = new Splitter();
                _sp.Name = "TSEco_Splitter";
                _sp.Dock = _dp == DockingPlace.Below ? DockStyle.Bottom : DockStyle.Top;
                ChartControl.Controls.Add(_sp);

                _so = new EcoNewsControl.EcoNewsControl(Cbi.Core.InstallDir + @"\Sounds", Cbi.Core.UserDataDir + @"bin\Custom\");
                _so.Dock = _dp == DockingPlace.Below ? DockStyle.Bottom : DockStyle.Top;
                _so.Name = "TSEco_News";
                ChartControl.Controls.Add(_so);
            }
            else
                _so = ChartControl.Controls["TSEco_News"] as EcoNewsControl.EcoNewsControl;
            _x = true;
        }
开发者ID:redrhino,项目名称:NinjaTrader.Base,代码行数:33,代码来源:EcoNewsIndicator.cs


示例2: PicoTextEditorForm

        public PicoTextEditorForm()
        {
            InitializeComponent();

            AllowBreakpoints = true;

            // Initialize info editor.
            InfoEditor.Visible = Settings.Default.Pico_AutoAssemble;
            InfoEditor.Document.HighlightingStrategy = ICSharpCode.TextEditor.Document.HighlightingStrategyFactory.CreateHighlightingStrategy("Info");

            // Create and initialize Auto-assemble button.
            var b = new ToolStripButton("Auto-assemble");
            b.Checked = Settings.Default.Pico_AutoAssemble;
            b.Click +=
                (sender, e) =>
                {
                    InfoEditor.Visible = !InfoEditor.Visible;

                    b.Checked = InfoEditor.Visible;
                    infoTimer.Enabled = InfoEditor.Visible;
                    if (!InfoEditor.Visible) errorPanel.Visible = false;
                };
            statusStrip.Items.Insert(0, b);

            Editor.Document.DocumentChanged += new ICSharpCode.TextEditor.Document.DocumentEventHandler(Document_DocumentChanged);
        }
开发者ID:lazanet,项目名称:messylab,代码行数:26,代码来源:PicoTextEditorForm.cs


示例3: AddNodeButton

        private void AddNodeButton(MyNodeConfig nodeInfo, bool isTransform)
        {
            ToolStripItem newButton = isTransform ? new ToolStripMenuItem() : newButton = new ToolStripButton();
            ToolStripItemCollection items;

            newButton.Image = nodeInfo.SmallImage;
            newButton.Name = nodeInfo.NodeType.Name;
            newButton.ToolTipText = nodeInfo.NodeType.Name.Substring(2);
            newButton.MouseDown += addNodeButton_MouseDown;
            newButton.Tag = nodeInfo.NodeType;

            newButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            newButton.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None;
            newButton.ImageTransparentColor = System.Drawing.Color.Magenta;

            if (isTransform)
            {
                newButton.DisplayStyle = ToolStripItemDisplayStyle.ImageAndText;
                newButton.Text = newButton.ToolTipText;
                items = transformMenu.DropDownItems;
            }
            else
            {
                items = toolStrip1.Items;
                newButton.MouseUp += newButton_MouseUp;
            }

            if (items.Count > 0 && (items[items.Count - 1].Tag as Type).Namespace != nodeInfo.NodeType.Namespace)
            {
                items.Add(new ToolStripSeparator());
            }
            items.Add(newButton);
        }
开发者ID:Jlaird,项目名称:BrainSimulator,代码行数:33,代码来源:GraphLayoutForm_Ops.cs


示例4: TweakExecuteControl

        public TweakExecuteControl(Tweakable tweakable, string currentState)
            : base()
        {
            this.tweakable = tweakable;
            this.state = currentState;
            this.Padding = new Padding(0, 0, 7, 0);

            Text = "execute";

            menu = new ContextMenuStrip();
            menu.ShowCheckMargin = false;
            menu.ShowImageMargin = false;
            menu.ShowItemToolTips = false;

            foreach (string setting in tweakable.GetAvailableSettings())
            {
                ToolStripItem item = new ToolStripButton(setting);
                if (setting == currentState)
                {
                    item.Enabled = false;
                }

                item.Click += Item_Click;

                menu.Items.Add(item);
            }
        }
开发者ID:fub-frank,项目名称:win10-privacy-tweaks,代码行数:27,代码来源:TweakExecuteControl.cs


示例5: FftToolStrip

        public FftToolStrip(GraphControl gc, GraphFFT gf)
        {
            graphControl = gc;
             oldGraph = gf;

             this.fft = new System.Windows.Forms.ToolStripButton();

             this.toolStrip.Dock = System.Windows.Forms.DockStyle.None;
             this.toolStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.fft});
             this.toolStrip.Location = new System.Drawing.Point(0, 0);
             this.toolStrip.Name = "toolStrip2";
             this.toolStrip.Size = new System.Drawing.Size(497, 25);
             this.toolStrip.TabIndex = 1;
             this.toolStrip.Text = "toolStrip2";

             //
             // fft
             //
             this.fft.CheckOnClick = true;
             this.fft.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text;
             this.fft.Image = null;// ((System.Drawing.Image)(resources.GetObject("fft.Image")));
             this.fft.ImageTransparentColor = System.Drawing.Color.Magenta;
             this.fft.Name = "fft";
             this.fft.Size = new System.Drawing.Size(30, 22);
             this.fft.Text = "FFT";
             this.fft.CheckStateChanged += new System.EventHandler(this.fft_CheckStateChanged);
        }
开发者ID:karawin,项目名称:xoscillo,代码行数:28,代码来源:FftToolstrip.cs


示例6: ZoomAdaptor

        public ZoomAdaptor(PicView picView, 
            ToolStripButton plusBtn,
            ToolStripButton minusBtn,
            ToolStripComboBox combox)
        {
            this.picView = picView;
            //this.form = form;
            this.plusBtn = plusBtn;
            this.minusBtn = minusBtn;
            this.combox = combox;

            picView.ZoomChanged += new EventHandler(zoomChanged);

            plusBtn.Click += new EventHandler(btnClick);
            minusBtn.Click += new EventHandler(btnClick);

            combox.DropDownStyle = ComboBoxStyle.DropDown;
            combox.DropDownHeight = 200;
            for(int i=20; i<=100; i+=20){
                combox.Items.Add(i.ToString() + "%");
            }

            combox.SelectedIndexChanged += new EventHandler(comboxTextUpdate);
            combox.Leave += new EventHandler(comboxTextUpdate);
            combox.KeyDown += new KeyEventHandler(comboxKeyDown);

            renew();
        }
开发者ID:noodlefighter,项目名称:LabelPlus,代码行数:28,代码来源:ZoomAdaptor.cs


示例7: RegisterToolBoxButton

        ///<summary>
        ///  Registers new Tool Box button in main tool-set
        ///</summary>
        ///<param name="ownControl">Control owns button will be created</param>
        ///<param name="item">Instance of <see cref="ToolStripMenuItem"/> which provides information to create button</param>
        ///<param name="action">Action should be call when created button clicked</param>
        ///<returns>Action delegate to notify main form when created button should be enabled/disabled</returns>
        ///<exception cref="FireFlyException"></exception>
        public Action<bool> RegisterToolBoxButton([NotNull]Control ownControl, [NotNull]ToolStripMenuItem item, [CanBeNull]EventHandler action)
        {
            var nb = new ToolStripButton(item.Text, item.Image) { Name = item.Name, ToolTipText = item.ToolTipText, Tag = ownControl, Visible = false};
            if (item.ShortcutKeys != Keys.None)
            {
#if CHECKERS
                if (nb.ToolTipText.IsNull())
                {
                    throw new FireFlyException("{0} has empty ToolTipText property", nb.Name);
                }
#endif
                nb.ToolTipText += " (" + new KeysConverter().ConvertToString(item.ShortcutKeys) + ")";
            }
            nb.DisplayStyle = item.Image != null ? ToolStripItemDisplayStyle.Image : ToolStripItemDisplayStyle.Text;
            nb.Click += action ?? ((s, e) => item.PerformClick());
            nb.Enabled = item.Visible && item.Enabled;
            tsMain.Items.Add(nb);

            ownControl.GotFocus += (s, e) => nb.Visible = true;
            ownControl.LostFocus += (s, e) =>
            {
                nb.Visible = false;
            };
            ownControl.Disposed += (s, e) => nb.Dispose();

            return isActive =>
            {
                nb.Enabled = isActive;
                item.Visible = isActive;
            };
        }
开发者ID:supermuk,项目名称:iudico,代码行数:39,代码来源:MainForm.cs


示例8: initializeToolStripButtons

		protected override void initializeToolStripButtons() {
			_tsBtnEditPackage = createToolStripButton("Updatepaket bearbeiten");
			_tsBtnRemovePackage = createToolStripButton("Entfernen", "Entfernt des Updatepaket aus dem Projekt.");

			_tsBtnEditPackage.Click += _tsBtnEditPackage_Click;
			_tsBtnRemovePackage.Click += _tsBtnRemovePackage_Click;
		}
开发者ID:Taipi88,项目名称:updateSystem.NET,代码行数:7,代码来源:updateSubPage.cs


示例9: ToolStripViewGui

        public ToolStripViewGui()
        {
            this.Settings = Options.Instance.ViewOptions;

            this.mButtonShowLastPackets = new ToolStripButton()
            {
                Text = "Last packets",
                Checked = this.Settings.ShowLastPackets
            };
            this.mButtonShowLastPackets.Click += new EventHandler(mButtonShowLastPackets_Click);

            this.mButtonShowStaticPackets = new ToolStripButton()
            {
                Text = "Static packets",
                Checked = this.Settings.ShowStaticPackets
            };
            this.mButtonShowStaticPackets.Click += new EventHandler(mButtonShowStaticPackets_Click);

            this.mButtonAbout = new ToolStripButton()
            {
                Text = "About"
            };
            this.mButtonAbout.Click += new EventHandler(mButtonAbout_Click);

            this.Items.AddRange(new ToolStripItem[] { this.mButtonShowLastPackets, this.mButtonShowStaticPackets, this.mButtonAbout });
        }
开发者ID:riuson,项目名称:com232term,代码行数:26,代码来源:ToolStripViewGui.cs


示例10: CreateToolStripButton

 private static ToolStripButton CreateToolStripButton(string text, EventHandler onClick = null)
 {
     ToolStripButton button = new ToolStripButton();
     button.Text = text;
     button.Click += onClick;
     return button;
 }
开发者ID:labeuze,项目名称:source,代码行数:7,代码来源:RunSourceStatus.cs


示例11: addtoolstripitem

        private void addtoolstripitem(string name, object classobject)
        {
            if (name == "Seperator")
                Items.Add(new ToolStripSeparator());
            else
            {
                bool merge = typeof (MainForm) != classobject.GetType();

                var toolstripbutton = new ToolStripButton(name) {Name = name};
                EventInfo eventinfo = toolstripbutton.GetType().GetEvent("Click");
                // Zoek de string.Format("{0}_Click", name.Replace(" ", "")) methode van classobject
                MethodInfo methodinfo =
                    classobject.GetType().GetMethod(string.Format("{0}_Click", name.Replace(" ", "")));

                if (methodinfo == null) // Als die niet bestaat.
                    toolstripbutton.Enabled = false;
                else // Anders, voeg een EventHandler toe van het Click event naar die methode.
                    eventinfo.AddEventHandler(toolstripbutton,
                                              Delegate.CreateDelegate(eventinfo.EventHandlerType, classobject,
                                                                      methodinfo));

                if (merge)
                    toolstripbutton.MergeAction = MergeAction.Replace;

                Items.Add(toolstripbutton);
                itemdictionary.Add(name, toolstripbutton);
            }
        }
开发者ID:afraca,项目名称:Traffic_Simulation,代码行数:28,代码来源:TaskMenu.cs


示例12: PHPToolBar

        public PHPToolBar()
        {
            App = (FireEditApplication)FireEditApplication.Istance;

            btnCheckSyntax = new ToolStripButton(Properties.Resources.document_check);
            btnCheckSyntax.Click += new EventHandler(_CheckSyntax_Click);
            btnCheckSyntax.Size = new System.Drawing.Size(22, 22);
            btnCheckSyntax.ToolTipText = "Check Syntax Only";

            this.Items.Add(btnCheckSyntax);
            this.Items.Add("-");

            btnRunScript = new ToolStripButton(Properties.Resources.RunScript);
            btnRunScript.ToolTipText = "Run Script";

            this.Items.Add(btnRunScript);

            btnRunScript.Click += new EventHandler(btnRunScript_Click);


            this.ImageScalingSize = App.MainForm.MainToolStrip.ImageScalingSize;

            this.Size = new Size(10, 25);


            this.AutoSize = true;
        }
开发者ID:viticm,项目名称:pap2,代码行数:27,代码来源:PHPToolBar.cs


示例13: SubmodulesToolbar

        /// <summary>Initializes a new instance of the <see cref="SubmodulesToolbar"/> class.</summary>
        /// <param name="submodulesView">Host view.</param>
        public SubmodulesToolbar(SubmodulesView submodulesView)
        {
            Verify.Argument.IsNotNull(submodulesView, "submodulesView");

            _submodulesView = submodulesView;

            Items.Add(new ToolStripButton(Resources.StrRefresh, CachedResources.Bitmaps["ImgRefresh"],
                (sender, e) =>
                {
                    _submodulesView.RefreshContent();
                })
                {
                    DisplayStyle = ToolStripItemDisplayStyle.Image,
                });
            Items.Add(new ToolStripSeparator());
            Items.Add(_btnAddSubmodule = new ToolStripButton(Resources.StrAddSubmodule, CachedResources.Bitmaps["ImgSubmoduleAdd"],
                (sender, e) =>
                {
                    using(var dlg = new AddSubmoduleDialog(_submodulesView.Repository))
                    {
                        dlg.Run(_submodulesView);
                    }
                })
                {
                    DisplayStyle = ToolStripItemDisplayStyle.ImageAndText,
                });
        }
开发者ID:Kuzq,项目名称:gitter,代码行数:29,代码来源:SubmodulesToolBar.cs


示例14: ToolStripButtonBlink

 public ToolStripButtonBlink(ref ContainerControl ParentControl, ref ToolStripButton TSButton, Image[] ImList)
     : this(ref ParentControl, 
         ref TSButton, 
         ImList,
         new[] {TSButton.ForeColor})
 {
 }
开发者ID:IsaacSanch,项目名称:KoruptLib,代码行数:7,代码来源:IconBlink.cs


示例15: StringEditor

        public StringEditor()
        {
            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(StringEditor));
            txtText = new TextBox();
            txtText.Top = 5;
            txtText.Left = 50;
            txtText.Width = 140;
            txtText.Anchor = AnchorStyles.Right | AnchorStyles.Left | AnchorStyles.Top|AnchorStyles.Right;
            txtText.TextChanged += TxtText_TextChanged;
            Controls.Add(txtText);

            ToolStrip tlsInsert = new ToolStrip();
            insertButton = new ToolStripButton();

            insertButton.Click += InsertButton_Click;

            insertButton.DisplayStyle = ToolStripItemDisplayStyle.Image;
            insertButton.Image = ((System.Drawing.Image)(resources.GetObject("toolStripSplitButton1.Image")));
            insertButton.ImageTransparentColor = System.Drawing.Color.Magenta;
            insertButton.Size = new System.Drawing.Size(32, 22);

            tlsInsert.Dock = DockStyle.None;
            tlsInsert.Items.Add(insertButton);
            tlsInsert.Location = new System.Drawing.Point(0, 2);

            Controls.Add(tlsInsert);
        }
开发者ID:jakakordez,项目名称:Eternal,代码行数:27,代码来源:StringEditor.cs


示例16: EnterPrintPreviewDialog

        /// <summary>
        /// Constructor for the Print Preview dialog
        /// </summary>        
        public EnterPrintPreviewDialog()
        {
            Type t = typeof(PrintPreviewDialog);
            FieldInfo fieldInfo = t.GetField("toolStrip1", BindingFlags.Instance | BindingFlags.NonPublic);
            FieldInfo fieldInfo2 = t.GetField("printToolStripButton", BindingFlags.Instance | BindingFlags.NonPublic);

            ToolStrip toolStrip1 = (ToolStrip)fieldInfo.GetValue(this);
            ToolStripButton printButton = (ToolStripButton)fieldInfo2.GetValue(this);

            printButton.Visible = false;

            enterPrintButton = new ToolStripButton();
            enterPrintButton.ToolTipText = printButton.ToolTipText;
            enterPrintButton.ImageIndex = 0;

            ToolStripItem[] oldButtons = new ToolStripItem[toolStrip1.Items.Count];

            for (int i = 0; i < oldButtons.Length; i++)
            {
                oldButtons[i] = toolStrip1.Items[i];
            }

            toolStrip1.Items.Clear();
            toolStrip1.Items.Add(enterPrintButton);

            for (int i = 0; i < oldButtons.Length; i++)
            {
                toolStrip1.Items.Add(oldButtons[i]);
            }

            toolStrip1.ItemClicked += new ToolStripItemClickedEventHandler(toolStrip1_ItemClicked);
        }
开发者ID:NALSS,项目名称:epiinfo-82474,代码行数:35,代码来源:PrintPreviewDialog.cs


示例17: CloneFromMenuItem

 /// <summary>
 /// 复制菜单项目StripButton
 /// </summary>
 /// <param name="orgMenuItem">原始的菜单</param>
 /// <returns>克隆的菜单StripButton</returns>
 public static ToolStripButton CloneFromMenuItem(this ToolStripMenuItem orgMenuItem)
 {
     ToolStripButton cloneButton = new ToolStripButton();
     //!!!typeof的参数必须是ToolStripMenuItem的基类!!!如果使用Control则不能取到值!!!
     ///感谢CSDN网友beargo在帖子【如何获取事件已定制方法名?】里面的提示,网上的例子没有说明这个问题
     ///坑爹啊。。。。。。。。
     Delegate[] _List = GetObjectEventList(orgMenuItem, "EventClick", typeof(ToolStripItem));
     if (!SystemManager.MONO_MODE)
     {
         //悲催MONO不支持
         if (_List != null && _List[0] != null)
         {
             try
             {
                 cloneButton.Click += new EventHandler(
                         (x, y) => { _List[0].DynamicInvoke(x, y); }
                 );
             }
             catch (Exception ex)
             {
                 SystemManager.ExceptionDeal(ex);
             }
         }
     }
     cloneButton.Image = orgMenuItem.Image;
     cloneButton.Enabled = orgMenuItem.Enabled;
     cloneButton.Text = orgMenuItem.Text;
     cloneButton.Checked = orgMenuItem.Checked;
     cloneButton.DisplayStyle = ToolStripItemDisplayStyle.Image;
     return cloneButton;
 }
开发者ID:Redi0,项目名称:meijing-ui,代码行数:36,代码来源:CloneMeunToolItem.cs


示例18: KeyTermsControl

		/// ------------------------------------------------------------------------------------
		/// <summary>
		/// Initializes a new instance of the <see cref="T:KeyTermsControl"/> class.
		/// </summary>
		/// <param name="sCaption">The caption to use when this control is displayed as a
		/// floating window</param>
		/// <param name="sProject">The name of the current project</param>
		/// ------------------------------------------------------------------------------------
		internal KeyTermsControl(string sCaption, string sProject) : base(sCaption, sProject)
		{
			InitializeComponent();

			m_sepShowOnlyAtTop = new ToolStripSeparator();
			m_ToolStrip.Items.Insert(0, m_sepShowOnlyAtTop);

			AddToolStripButton(0, TeResourceHelper.KeyTermFilterImage,
				TeResourceHelper.GetTmResourceString("kstidApplyFilterToKeyTermsToolTip"));

			m_tbbApplyFilter = m_ToolStrip.Items[0] as ToolStripButton;
			m_ToolStrip.Items.Insert(0, new ToolStripSeparator());

			AddToolStripButton(0, TeResourceHelper.KeyTermNotRenderedImage,
				TeResourceHelper.GetTmResourceString("kstidVernEqNotAssignedToolTip"));

			m_tbbNotRendered = m_ToolStrip.Items[0] as ToolStripButton;

			AddToolStripButton(0, TeResourceHelper.KeyTermIgnoreRenderingImage,
				TeResourceHelper.GetTmResourceString("kstidNotRenderedToolTip"));

			m_tbbVernNotAssigned = m_ToolStrip.Items[0] as ToolStripButton;

			AddToolStripButton(0, TeResourceHelper.KeyTermRenderedImage,
				TeResourceHelper.GetTmResourceString("kstidUseAsVernEqToolTip"));

			m_tbbUseAsVern = m_ToolStrip.Items[0] as ToolStripButton;

			m_ToolStrip.Items.Insert(0, new ToolStripSeparator());
			AddToolStripButton(0, TeResourceHelper.UpdateKeyTermEquivalentsImage,
				TeResourceHelper.GetTmResourceString("kstidUpdateKeyTermEquivalentsToolTip"));
			m_tbbUpdateKeyTermEquivalents = m_ToolStrip.Items[0] as ToolStripButton;
			m_ToolStrip.ItemClicked += new ToolStripItemClickedEventHandler(OnItemClicked);
		}
开发者ID:sillsdev,项目名称:WorldPad,代码行数:42,代码来源:KeyTermsControl.cs


示例19: addToolButton

        public void addToolButton(FormMain formMain)
        {
            this.formMain = formMain;
            var rm = new ResourceManager("PluginExportScreens.Icon", this.GetType().Assembly);

            var iconImport = (System.Drawing.Bitmap)rm.GetObject("icon_import");
            var item = new ToolStripButton("Import", iconImport, btImport_Click);
            item.DisplayStyle = ToolStripItemDisplayStyle.Image;
            formMain.addToolButton(item);

            var iconExportPic = (System.Drawing.Bitmap)rm.GetObject("icon_export");
            item = new ToolStripButton("Export pic", iconExportPic, bttExportPic_Click);
            item.DisplayStyle = ToolStripItemDisplayStyle.Image;
            formMain.addToolButton(item);

            var iconExportJson = (System.Drawing.Bitmap)rm.GetObject("icon_export");
            item = new ToolStripButton("Export json", iconExportJson, bttExportJson_Click);
            item.DisplayStyle = ToolStripItemDisplayStyle.Image;
            formMain.addToolButton(item);

            var iconExport = (System.Drawing.Bitmap)rm.GetObject("icon_export");
            item = new ToolStripButton("Export", iconExport, btExport_Click);
            item.DisplayStyle = ToolStripItemDisplayStyle.Image;
            formMain.addToolButton(item);
        }
开发者ID:ghostdogtm,项目名称:CadEditor,代码行数:25,代码来源:PluginExportScreens.cs


示例20: StartCalc

        protected override void StartCalc()
        {
			if (!tool_bar_inited){
				tool_bar_inited = true;
				ChartToolBar.AccessToolBar(tb=>
				                               {
				                                   var _tsi3 = new ToolStripButton {Text = "plot color"};
                                                   set_color_tsi(_tsi3, m_plot_color);
                                                   _tsi3.Click += button1_Click;
                                                   AddItem2ToolStrip(tb, _tsi3);

				                                   var _track = new TrackBar
				                                                    {
				                                                        Dock = DockStyle.Fill,
				                                                        Maximum = 1000,
				                                                        Minimum = 10,
				                                                        SmallChange = 10,
				                                                        Value = Length,
                                                                        Text = "Average Length"                                                                        
				                                                    };
                                                   _track.ValueChanged += _new_track;
                                                   AddItem2ToolStrip(tb, new ToolStripControlHost(_track));

                                                   AddItem2ToolStrip(tb, new ToolStripSeparator());
				                               });
			}


		}
开发者ID:earlyBirdy,项目名称:multicharts.base,代码行数:29,代码来源:_Chart_ToolBar_Example_.Indicator.CS



注:本文中的System.Windows.Forms.ToolStripButton类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# Forms.ToolStripComboBox类代码示例发布时间:2022-05-26
下一篇:
C# Forms.ToolStripArrowRenderEventArgs类代码示例发布时间:2022-05-26
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap