當前位置: 首頁>>代碼示例>>C#>>正文


C# Forms.StatusStrip類代碼示例

本文整理匯總了C#中System.Windows.Forms.StatusStrip的典型用法代碼示例。如果您正苦於以下問題:C# StatusStrip類的具體用法?C# StatusStrip怎麽用?C# StatusStrip使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


StatusStrip類屬於System.Windows.Forms命名空間,在下文中一共展示了StatusStrip類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的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


注:本文中的System.Windows.Forms.StatusStrip類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。