本文整理汇总了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;
}
示例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);
}
示例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;
}
示例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();
}
示例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();
}
示例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();
}
示例7: StatusManager
public StatusManager(WindowManager windowManager, StatusStrip statusStrip)
{
_windowManager = windowManager;
_statusStrip = statusStrip;
_leftLabel = new ToolStripStatusLabel();
_leftLabel.Alignment = ToolStripItemAlignment.Right;
_statusStrip.Items.Add(_leftLabel);
}
示例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();
}
示例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;
}
示例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;
}
}
示例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;
}
示例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");
}
示例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.");
}
示例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();
}
}
示例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);
}