本文整理汇总了C#中System.Windows.Forms.ToolStripStatusLabel类的典型用法代码示例。如果您正苦于以下问题:C# ToolStripStatusLabel类的具体用法?C# ToolStripStatusLabel怎么用?C# ToolStripStatusLabel使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ToolStripStatusLabel类属于System.Windows.Forms命名空间,在下文中一共展示了ToolStripStatusLabel类的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: CrmConnectionStatusBar
/// <summary>
/// Initializes a new instance of class CrmConnectionStatusBar
/// </summary>
public CrmConnectionStatusBar(FormHelper formHelper)
{
resources = new System.ComponentModel.ComponentResourceManager(typeof(CrmConnectionStatusBar));
ConnectionManager.Instance.ConnectionListUpdated += cManager_ConnectionListUpdated;
_formHelper = formHelper;
// Build connection control
this.BuildConnectionControl();
// Add label that will display information about connection
ToolStripStatusLabel informationLabel = new ToolStripStatusLabel
{
Spring = true,
TextAlign = ContentAlignment.MiddleRight
};
this.Items.Add(informationLabel);
ToolStripProgressBar progress = new ToolStripProgressBar
{
Minimum = 0,
Maximum = 100,
Visible = false
};
this.Items.Add(progress);
base.RenderMode = ToolStripRenderMode.Professional;
}
示例3: draw
public void draw(ToolStripStatusLabel label)
{
_ctx.translate(280, 200);
_ctx.scale(0.4, 0.4);
fly(_ctx, 1, label);
}
示例4: CreateDefaultStipStatusLabel
//分離された領域を作成
private static ToolStripStatusLabel CreateDefaultStipStatusLabel() {
ToolStripStatusLabel l = new ToolStripStatusLabel();
l.AutoSize = false;
l.BorderSides = ToolStripStatusLabelBorderSides.All;
l.BorderStyle = Border3DStyle.SunkenInner;
return l;
}
示例5: PowerShellHost
/// <summary>
/// Default constructor.
/// </summary>
/// <param name="parentForm">The connection form that will display the PowerShell console.</param>
/// <param name="terminal">Terminal control that will display the PowerShell console.</param>
/// <param name="executeHelper">Method used to execute PowerShell commands within the current session.</param>
/// <param name="progressBar">Progress bar UI element to update when writing progress records.</param>
/// <param name="progressLabel">Label UI element to update when writing progress records.</param>
public PowerShellHost(
PowerShellConnectionForm parentForm, TerminalControl terminal, Func<string, Collection<PSObject>> executeHelper, ToolStripProgressBar progressBar,
ToolStripStatusLabel progressLabel)
{
_parentForm = parentForm;
_powerShellHostUi = new PowerShellHostUi(terminal, executeHelper, progressBar, progressLabel);
}
示例6: ProcessLayer
public ProcessLayer(ToolStripStatusLabel ProcStatus, TextBox TxtLog)
{
m_lb_Status = ProcStatus;
m_txt_Log = TxtLog;
bIsRun = false;
bIsShow = true;
}
示例7: StatusWriter
/// <summary>
/// Initialize a status writer.
/// </summary>
/// <param name="strip">Status strip holding the messages.</param>
/// <param name="parent">Parent which contains the status writer.
/// (May be invoked recursively across threads).</param>
/// <param name="crossInvoke">Delegate to invoke cross-threads in parent.</param>
public StatusWriter(ToolStripStatusLabel strip, Control parent, StatusDelegate crossInvoke)
{
this.label = strip;
this.parentControl = parent;
this.defaultStatusStripBackColor = strip.BackColor;
this.crossInvoke = crossInvoke;
}
示例8: ChatClient
public ChatClient(string[] args, TextBox output, ToolStripStatusLabel messageToolStripSatusLbl)
{
this._outputTxtBx = output;
this._messageStatus = messageToolStripSatusLbl;
this._roomVersion = RoomVersion.Base;
this.Initialize(args);
}
示例9: QueryStatusBar
public QueryStatusBar()
{
SizingGrip = false;
Stretch = true;
DockPadding.All = 0;
_connectionLabel = new ToolStripStatusLabel();
_connectionLabel.Spring = true;
_serverLabel = new ToolStripStatusLabel();
_userLabel = new ToolStripStatusLabel();
_queryTimeLabel = new ToolStripStatusLabel();
_rowCountLabel = new ToolStripStatusLabel();
// statusLabel.BorderSides = ToolStripStatusLabelBorderSides.All;
//statusLabel.BorderStyle = Border3DStyle.Sunken;
foreach (var label in AllLabels)
{
label.BorderSides = ToolStripStatusLabelBorderSides.All;
label.Alignment = ToolStripItemAlignment.Right;
label.BorderStyle = Border3DStyle.SunkenOuter;
label.Padding = new Padding(-1, 5, -1, 5);
label.TextAlign = ContentAlignment.MiddleLeft;
}
}
示例10: UpdateStatusBar
public void UpdateStatusBar(string message)
{
statusBar.Items.Clear();
ToolStripStatusLabel label = new ToolStripStatusLabel(message);
statusBar.Items.Add(label);
ScreenReader.sayString(label.Text, false);
}
示例11: InitStatus
/// <summary>
/// 初始化任务栏
/// </summary>
private void InitStatus()
{
this.stsStatus.SuspendLayout();
// Timer
ToolStripStatusLabel tsslblTimer = new ToolStripStatusLabel();
tsslblTimer.Name = "tsslblTimer";
tsslblTimer.Text = Utility.GetLongSysDateTimeString();
ToolStripSeparator tssp1 = new ToolStripSeparator();
ToolStripStatusLabel tsslblUser = new ToolStripStatusLabel();
tsslblUser.Name = "tsslblUser";
tsslblUser.Text = "登录人员:";
ToolStripSeparator tssp2 = new ToolStripSeparator();
ToolStripStatusLabel tsslblABName = new ToolStripStatusLabel();
tsslblABName.Name = "tsslblABName";
tsslblABName.Text = "当前账本:";
ToolStripSeparator tssp3 = new ToolStripSeparator();
ToolStripStatusLabel tsslblIP = new ToolStripStatusLabel();
tsslblIP.Name = "tsslblIP";
tsslblIP.Text = "IP:";
this.stsStatus.Items.AddRange(new ToolStripItem[] { tsslblTimer, tssp1, tsslblUser, tssp2, tsslblABName, tssp3, tsslblIP});
this.stsStatus.ResumeLayout(false);
this.stsStatus.PerformLayout();
}
示例12: FrmOutEarth
public FrmOutEarth(GSOGlobeControl globeControl, DevComponents.DotNetBar.Controls.DataGridViewX dataGridViewX11, ToolStripStatusLabel toolStripNumbers1)
{
InitializeComponent();
globeControl1 = globeControl;
dataGridViewX1 = dataGridViewX11;
toolStripNumbers = toolStripNumbers1;
}
示例13: LayoutOrder
//Инициализация класса с получением рабочей формы
public LayoutOrder(Panel Panel, System.Windows.Forms.ToolStripStatusLabel ToolStripStatusLabel1)
{
ParentPanel = Panel;
ParentToolStripStatusLabel = ToolStripStatusLabel1;
Data.ElemsAfterEditingAss = new Data.MyEventDict(writeElems);
}
示例14: RepoResultsActor
public RepoResultsActor(DataGridView userDg, ToolStripStatusLabel statusLabel, ToolStripProgressBar progressBar)
{
_userDg = userDg;
_statusLabel = statusLabel;
_progressBar = progressBar;
InitialReceives();
}
示例15: MedusaStatusBar
/// <summary>
/// Constructor
/// </summary>
public MedusaStatusBar()
{
InitializeComponent();
//Agrego el item de cargando
ToolStripItem item1 = new ToolStripStatusLabel();
Image loadingImage = Properties.Resources.ajax_loader_4;
item1.DisplayStyle = ToolStripItemDisplayStyle.ImageAndText;
item1.Name = "loading";
item1.Image = loadingImage;
item1.ImageScaling = ToolStripItemImageScaling.None;
item1.Text = "Cargando...";
this.Items.Add(item1);
//Agrego el item de informacion
ToolStripItem item2 = new ToolStripStatusLabel();
Image infoImage = Properties.Resources.emblem_important;
item2.Name = "information";
item2.DisplayStyle = ToolStripItemDisplayStyle.ImageAndText;
item2.Image = infoImage;
item2.ImageScaling = ToolStripItemImageScaling.None;
item2.Text = "";
item2.Visible = false;
this.Items.Add(item2);
//Timer
aTimer.Elapsed += new ElapsedEventHandler(OnTimedEvent);
aTimer.Interval = 10000;
}