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

C# Forms.StatusStrip类代码示例

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

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



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

示例1: StatusService

        public StatusService(Form mainForm)
        {
            m_mainForm = mainForm;

            m_statusStrip = new StatusStrip();
            m_statusStrip.Name = "StatusBar";
            m_statusStrip.Dock = DockStyle.Bottom;
            // statusStrip items  are laid out horizontally and overflow as necessary.
            m_statusStrip.LayoutStyle = ToolStripLayoutStyle.HorizontalStackWithOverflow;
            m_statusStrip.ShowItemToolTips = false;

            // main status text
            m_mainPanel = new ToolStripStatusLabel();
            m_mainPanel.Width = 256;
            m_mainPanel.AutoSize = true;
            m_mainPanel.Spring = true;
            m_mainPanel.TextAlign = ContentAlignment.MiddleLeft;
            m_statusStrip.Items.Add(m_mainPanel);

            m_progressTimer = new Timer(
                progressCallback, this, Timeout.Infinite, ProgressInterval);

            m_progressDialog = new ThreadSafeProgressDialog(false, true);
            m_progressDialog.Cancelled += progressDialog_Cancelled;
        }
开发者ID:JanDeHud,项目名称:LevelEditor,代码行数:25,代码来源:StatusService.cs


示例2: StatusBar

	/// <summary>
	/// Конструктор класса
	/// </summary>
	/// <param name="statusBar">Объект который представляет из себя строку состояния</param>
	/// <param name="statusBarLabel">Текст отображаемый в строке состояния</param>
	/// <param name="parent">Родительская форма</param>
	public StatusBar(System.Windows.Forms.StatusStrip statusBar, ToolStripLabel statusBarLabel, BankLab parent)
	{
		CurrentStatusBar = statusBar;
		StatusBarLabel = statusBarLabel;
		Parent = parent;
		FindControlsOn(Parent);
	}
开发者ID:JDevelopBox,项目名称:Banklab,代码行数:13,代码来源:StatusBar.cs


示例3: Workspace

        /// <summary>
        /// The default constructor sets the base controls.
        /// </summary>
        protected Workspace()
        {
            // Graphical measures
            Graphics g = CreateGraphics();
            SizeF sizeString = g.MeasureString("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890", Font);
            Data.HorizontalDLU = (sizeString.Width/62)/4;
            Data.VerticalDLU = sizeString.Height/8;
            g.Dispose();

            TsTradeControl = new ToolStrip();
            MainMenuStrip = new MenuStrip();
            PnlWorkspace = new Panel();
            StatusStrip = new StatusStrip();

            // Panel Workspace
            PnlWorkspace.Parent = this;
            PnlWorkspace.Dock = DockStyle.Fill;
            PnlWorkspace.Padding = new Padding(2);
            PnlWorkspace.AllowDrop = true;
            PnlWorkspace.DragEnter += Workspace_DragEnter;
            PnlWorkspace.DragDrop += WorkspaceDragDrop;

            // Tool Strip Trade control
            TsTradeControl.Parent = this;
            TsTradeControl.Dock = DockStyle.Top;

            // Main menu
            MainMenuStrip.Parent = this;
            MainMenuStrip.Dock = DockStyle.Top;

            // Status bar
            StatusStrip.Parent = this;
            StatusStrip.Dock = DockStyle.Bottom;
        }
开发者ID:kalaytan,项目名称:Forex-Strategy-Trader,代码行数:37,代码来源:Workspace.cs


示例4: ViewDrawForm

 /// <summary>
 /// Initialize a new instance of the ViewDrawForm class.
 /// </summary>
 /// <param name="paletteBack">Palette source for the background.</param>		
 /// <param name="paletteBorder">Palette source for the border.</param>
 public ViewDrawForm(IPaletteBack paletteBack,
                     IPaletteBorder paletteBorder)
     : base(paletteBack, paletteBorder)
 {
     // Create a status strip we can position for rendering
     _renderStrip = new StatusStrip();
 }
开发者ID:ComponentFactory,项目名称:Krypton,代码行数:12,代码来源:ViewDrawForm.cs


示例5: PictureCtrl

 /// <summary>
 /// Конструктор
 /// </summary>
 public PictureCtrl(Size size, dGetBscanPart getBscanPart, StatusStrip statusBar, MarksManagerClass marksMgr, Action zoomCheck, List<string> ascansGps)
 {
     InitializeComponent();
     drawingInfo = new DrawingInfo();
     SetPictureCtrlProperties(size, getBscanPart, statusBar, marksMgr, zoomCheck, ascansGps);
     PictureCoords.Instance.RefreshPicCoords(Width, Height, _bscanLength, _maxAscanLength);
     ShiftPanelError();
 }
开发者ID:teodorro,项目名称:Centipede,代码行数:11,代码来源:PictureCtrl.cs


示例6: InitializeComponent

        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            this.statusStrip = new System.Windows.Forms.StatusStrip();
            this.toolStripStatusLabel = new System.Windows.Forms.ToolStripStatusLabel();
            this.openFileDialog = new System.Windows.Forms.OpenFileDialog();
            this.welcomePage = new Microsoft.Tools.WindowsInstallerXml.Tools.ClickThrough.WelcomePage();
            this.statusStrip.SuspendLayout();
            this.SuspendLayout();
            // 
            // statusStrip
            // 
            this.statusStrip.BackColor = System.Drawing.SystemColors.GradientActiveCaption;
            this.statusStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.toolStripStatusLabel});
            this.statusStrip.Location = new System.Drawing.Point(0, 664);
            this.statusStrip.Name = "statusStrip";
            this.statusStrip.RenderMode = System.Windows.Forms.ToolStripRenderMode.Professional;
            this.statusStrip.Size = new System.Drawing.Size(812, 22);
            this.statusStrip.TabIndex = 1;
            // 
            // toolStripStatusLabel
            // 
            this.toolStripStatusLabel.BackColor = System.Drawing.SystemColors.GradientInactiveCaption;
            this.toolStripStatusLabel.Name = "toolStripStatusLabel";
            this.toolStripStatusLabel.Size = new System.Drawing.Size(0, 17);
            // 
            // openFileDialog
            // 
            this.openFileDialog.DefaultExt = "ctd";
            this.openFileDialog.Filter = "ClickThrough data (*.ctd)|*.ctd|All files (*.*)|*.*";
            // 
            // welcomePage
            // 
            this.welcomePage.AutoScroll = true;
            this.welcomePage.BackColor = System.Drawing.Color.Transparent;
            this.welcomePage.Dock = System.Windows.Forms.DockStyle.Fill;
            this.welcomePage.Location = new System.Drawing.Point(0, 0);
            this.welcomePage.Name = "welcomePage";
            this.welcomePage.Size = new System.Drawing.Size(812, 664);
            this.welcomePage.TabIndex = 2;
            // 
            // ClickThroughForm
            // 
            this.BackColor = System.Drawing.SystemColors.Window;
            this.ClientSize = new System.Drawing.Size(812, 686);
            this.Controls.Add(this.welcomePage);
            this.Controls.Add(this.statusStrip);
            this.MinimumSize = new System.Drawing.Size(420, 200);
            this.Name = "ClickThroughForm";
            this.Text = "WiX - ClickThrough UI";
            this.statusStrip.ResumeLayout(false);
            this.statusStrip.PerformLayout();
            this.ResumeLayout(false);
            this.PerformLayout();

        }
开发者ID:Jeremiahf,项目名称:wix3,代码行数:60,代码来源:ClickThroughForm.Designer.cs


示例7: StatusManager

        public StatusManager(WindowManager windowManager, StatusStrip statusStrip)
        {
            _windowManager = windowManager;
            _statusStrip = statusStrip;

            _leftLabel = new ToolStripStatusLabel();
            _leftLabel.Alignment = ToolStripItemAlignment.Right;

            _statusStrip.Items.Add(_leftLabel);
        }
开发者ID:mayatforest,项目名称:Refractor,代码行数:10,代码来源:StatusManager.cs


示例8: InitializeComponent

 private void InitializeComponent()
 {
     ComponentResourceManager resources = new ComponentResourceManager(typeof(RegistersForm));
     this.statusStrip1 = new StatusStrip();
     this.ssLblStatus = new ToolStripStatusLabel();
     this.panel1 = new Panel();
     this.registerTableControl1 = new RegisterTableControl();
     this.statusStrip1.SuspendLayout();
     this.panel1.SuspendLayout();
     base.SuspendLayout();
     this.statusStrip1.Items.AddRange(new ToolStripItem[] { this.ssLblStatus });
     this.statusStrip1.Location = new Point(0, 0xf4);
     this.statusStrip1.Name = "statusStrip1";
     this.statusStrip1.Size = new Size(0x124, 0x16);
     this.statusStrip1.TabIndex = 1;
     this.statusStrip1.Text = "statusStrip1";
     this.ssLblStatus.Name = "ssLblStatus";
     this.ssLblStatus.Size = new Size(11, 0x11);
     this.ssLblStatus.Text = "-";
     this.panel1.AutoSize = true;
     this.panel1.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
     this.panel1.Controls.Add(this.registerTableControl1);
     this.panel1.Dock = DockStyle.Fill;
     this.panel1.Location = new Point(0, 0);
     this.panel1.Name = "panel1";
     this.panel1.Size = new Size(0x124, 0xf4);
     this.panel1.TabIndex = 0;
     this.registerTableControl1.AutoSize = true;
     this.registerTableControl1.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
     this.registerTableControl1.Location = new Point(3, 3);
     this.registerTableControl1.Name = "registerTableControl1";
     this.registerTableControl1.Size = new Size(0xd0, 0x19);
     this.registerTableControl1.Split = 4;
     this.registerTableControl1.TabIndex = 0;
     base.AutoScaleDimensions = new SizeF(6f, 13f);
     base.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.AutoSize = true;
     base.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
     base.ClientSize = new Size(0x124, 0x10a);
     base.Controls.Add(this.panel1);
     base.Controls.Add(this.statusStrip1);
     this.DoubleBuffered = true;
     base.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
     base.Icon = (Icon) resources.GetObject("$this.Icon");
     base.KeyPreview = true;
     base.MaximizeBox = false;
     base.Name = "RegistersForm";
     this.Text = "SX1231 Registers display";
     this.statusStrip1.ResumeLayout(false);
     this.statusStrip1.PerformLayout();
     this.panel1.ResumeLayout(false);
     this.panel1.PerformLayout();
     base.ResumeLayout(false);
     base.PerformLayout();
 }
开发者ID:JamesH001,项目名称:SX1231,代码行数:55,代码来源:RegistersForm.cs


示例9: settings_form

 public settings_form(main_form parent, StatusStrip status, MenuStrip menu)
 {
     InitializeComponent();
     this.parent = parent;
     this.status = status;
     this.menu = menu;
     theme.Items.AddRange(Enum.GetNames(typeof(colors)));
     theme.Items.RemoveAt(0);
     theme.SelectedIndex = settings.index;
     BackColor = settings.color;
 }
开发者ID:Drru97,项目名称:Cross-Platform_Programming,代码行数:11,代码来源:settings_form.cs


示例10: AutoHideStatusStripContainer

		public AutoHideStatusStripContainer(StatusStrip statusStrip): base(statusStrip)
		{
			statusStrip.AutoSize = false;
			statusStrip.MouseMove += StatusStripMouseMove;
			statusStrip.ItemAdded += delegate(object sender, ToolStripItemEventArgs e) {
				e.Item.MouseMove += StatusStripMouseMove;
			};
			foreach(ToolStripItem i in statusStrip.Items) {
				i.MouseMove += StatusStripMouseMove;
			}
		}
开发者ID:kingjiang,项目名称:SharpDevelopLite,代码行数:11,代码来源:AutoHideStatusStripContainer.cs


示例11: Construct

        /// <summary>
        /// Constructor for the static class, it is called manually.
        /// </summary>
        /// <param name="statusBar">Object of the status bar.</param>
        /// <param name="statusLabel">Object of the status label.</param>
        /// <param name="lineLabel">Object of the line label.</param>
        /// <param name="columnLabel">Object of the line label.</param>
        public static void Construct(StatusStrip statusBar, ToolStripLabel statusLabel, ToolStripLabel lineLabel, ToolStripLabel columnLabel)
        {
            if (StatusManager.statusBar != null) // Prevent double construct.
            {
                return;
            }

            StatusManager.statusBar = statusBar;
            StatusManager.columnLabel = columnLabel;
            StatusManager.lineLabel = lineLabel;
            StatusManager.statusLabel = statusLabel;
        }
开发者ID:BroneKot,项目名称:PawnPlus,代码行数:19,代码来源:StatusManager.cs


示例12: MsdnNamePropertyTest

                public override void MsdnNamePropertyTest()
                {
                        StatusStrip statusStrip = new StatusStrip();
                        AutomationElement child = GetAutomationElementFromControl(statusStrip);
                        Assert.AreEqual(statusStrip.Text,
                                child.GetCurrentPropertyValue(AutomationElementIdentifiers.NameProperty, true),
                                "NameProperty");

                        statusStrip.Text = "Unhappy statusStrip";
                        Assert.AreEqual(statusStrip.Text,
                                child.GetCurrentPropertyValue(AutomationElementIdentifiers.NameProperty, true),
                                "NameProperty");
                }
开发者ID:mono,项目名称:uia2atk,代码行数:13,代码来源:StatusStripTest.cs


示例13: ProviderPatternTest

		public void ProviderPatternTest ()
		{
			StatusStrip statusStrip = new StatusStrip ();
			IRawElementProviderSimple provider =
				ProviderFactory.GetProvider (statusStrip);

			object gridProvider =
				provider.GetPatternProvider (GridPatternIdentifiers.Pattern.Id);
			Assert.IsNotNull (gridProvider,
			                  "Not returning GridPatternIdentifiers.");
			Assert.IsTrue (gridProvider is IGridProvider,
			               "Not returning GridPatternIdentifiers.");
		}
开发者ID:mono,项目名称:uia2atk,代码行数:13,代码来源:StatusStripProviderTest.cs


示例14: SetApplicationStatusStrip

        /// <summary>
        /// 
        /// </summary>
        public override void SetApplicationStatusStrip(StatusStrip strip)
        {
            base.SetApplicationStatusStrip(strip);

            if (strip != null)
            {
                _statusStripOperator.Load(this, this.timerUI, Tracer, strip);
            }
            else
            {
                _statusStripOperator.UnLoad();
            }
        }
开发者ID:redrhino,项目名称:DotNetConnectTerminal,代码行数:16,代码来源:DiagnosticsComponentControl.cs


示例15: OnImportsSatisfied

        public void OnImportsSatisfied()
        {
            statusStrip = new StatusStrip
                          {
                              ForeColor = Color.Blue
                          };

            // adding the status strip control
            Shell.Controls.Add(statusStrip);

            // adding one initial status panel to the status strip control
            defaultStatusPanel = new StatusPanel();
            Add(defaultStatusPanel);
        }
开发者ID:hanchao,项目名称:DotSpatial,代码行数:14,代码来源:StatusControl.cs


示例16: Output

 public Output()
 {
     // Infobox
     infoBox = new ListBox();
     infoBox.MinimumSize = new Size(0, 108);
     infoBox.MaximumSize = new Size(0, 108);
     infoBox.SetBounds(0, 183, 526, 172);
     // Statusbar
     statusStrip = new StatusStrip();
     statusLabel = new ToolStripStatusLabel("statusLabel");
     statusProzentBar = new ToolStripProgressBar();
     statusStrip.Items.Add(statusProzentBar);
     statusStrip.Items.Add(statusLabel);
 }
开发者ID:janzendi,项目名称:RefereeC-,代码行数:14,代码来源:Output.cs


示例17: WebBrowserTabPage

        public WebBrowserTabPage(WebKitBrowser browserControl, bool goHome)
        {
            InitializeComponent();

            statusStrip = new StatusStrip();
            statusStrip.Name = "statusStrip";
            statusStrip.Visible = true;
            statusStrip.SizingGrip = false;

            container = new ToolStripContainer();
            container.Name = "container";
            container.Visible = true;
            container.Dock = DockStyle.Fill;

            statusLabel = new ToolStripLabel();
            statusLabel.Name = "statusLabel";
            statusLabel.Text = "Done";
            statusLabel.Visible = true;

            iconLabel = new ToolStripLabel();
            iconLabel.Name = "iconLabel";
            iconLabel.Text = "No Icon";
            iconLabel.Visible = true;

            statusStrip.Items.Add(statusLabel);
            statusStrip.Items.Add(iconLabel);

            container.BottomToolStripPanel.Controls.Add(statusStrip);

            // create webbrowser control
            browser = browserControl;
            browser.Visible = true;
            browser.Dock = DockStyle.Fill;
            browser.Name = "browser";
            container.ContentPanel.Controls.Add(browser);

            // context menu

            this.Controls.Add(container);
            this.Text = "<New Tab>";

            // events
            browser.DocumentTitleChanged += (s, e) => this.Text = browser.DocumentTitle;
            browser.Navigating += (s, e) => statusLabel.Text = "Loading...";
            browser.Navigated += (s, e) => { statusLabel.Text = "Downloading..."; };
            browser.DocumentCompleted += (s, e) => { statusLabel.Text = "Done"; };
            if (goHome)
                browser.Navigate("http://www.google.com");
            browser.ApplicationName = "WebKit.NET-test";
        }
开发者ID:davejohnson,项目名称:webkit-dot-net,代码行数:50,代码来源:WebBrowserTabPage.cs


示例18: WindowManager

        internal WindowManager(MainForm form, DockPanel dockPanel, StatusStrip statusStrip, MenuStrip menuStrip)
        {
            _mainForm = form;

            _dockPanel = dockPanel;

            _statusManager = new StatusManager(this, statusStrip);
            _menuManager = new MenuManager(this, menuStrip);

            _logView = new LogView(this);
            _projectBrowser = new ProjectBrowser(this);
            _projectBrowser.OnFilesChanged += new EventHandler(_projectBrowser_OnFilesChanged);
            _favouritesBrowser = new FavouritesBrowser(this);
            _historyBrowser = new HistoryBrowser(this);
        }
开发者ID:mayatforest,项目名称:Refractor,代码行数:15,代码来源:WindowManager.cs


示例19: StatusManager

        public StatusManager(StatusStrip strip, ToolStripStatusLabel label, ToolStripProgressBar progress)
        {
            this.strip = strip;
            this.label = label;
            this.progress = progress;

            label.Text = "Initializing...";
            watch = new Stopwatch();
            watch.Start();
            progress.Minimum = 0;
            progress.Step = 1;
            progress.Maximum = 1;

            messages = new Queue<string>();
        }
开发者ID:jrising,项目名称:flight-finder,代码行数:15,代码来源:StatusManager.cs


示例20: addServerCollectionThread

        public void addServerCollectionThread(ToolStripLabel toolStripLabel, ref StatusStrip SS, String file,
                                              Servers serversInstance, threads threadsInstance)
        {
            int maxthreads = 90;

            changeCurrThread(0, false);

            var r = new Regex(@"([0-9]+\.[0-9]+\.[0-9]+\.[0-9]+:[0-9]+)|([a-zA-Z][a-zA-Z0-9\-\.]+?:[0-9]+)");
            MatchCollection mc;
            try
            {
                mc = r.Matches(file);
            }
            catch
            {
                Controller.ToolStripText(toolStripLabel, ref SS, "Ready");
                return;
            }

            int count = 0;
            foreach (Match m in mc)
            {
            retry:
                if (killThreads)
                    break;

                if (currthreads > maxthreads)
                {
                    Thread.Sleep(100);
                    goto retry;
                }

                Controller.ToolStripText(toolStripLabel, ref SS,
                                         "Verifying/Adding Server:" + count.ToString() + "/" + mc.Count);
                KeyValuePair<String, String> coll = Server.getIpPort(m.ToString());

                changeCurrThread(1, true);
                var t = new Thread(() => addServerThread(coll.Key, int.Parse(coll.Value), serversInstance));
                t.Start();
                count++;
            }

            while (currthreads > 0)
            {
                Thread.Sleep(100);
            }
        }
开发者ID:andreigec,项目名称:COD4-Server-Tool,代码行数:47,代码来源:threads.cs



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
C# Forms.TabControl类代码示例发布时间:2022-05-26
下一篇:
C# Forms.StatusBarPanel类代码示例发布时间: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