本文整理汇总了C#中System.Windows.Forms.ToolStripStatusLabel.set_Text方法的典型用法代码示例。如果您正苦于以下问题:C# ToolStripStatusLabel.set_Text方法的具体用法?C# ToolStripStatusLabel.set_Text怎么用?C# ToolStripStatusLabel.set_Text使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类System.Windows.Forms.ToolStripStatusLabel
的用法示例。
在下文中一共展示了ToolStripStatusLabel.set_Text方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: buildGui
private void buildGui()
{
this.invokeOnThread(
() =>
{
"Buliding Gui for ascx_ExecuteScripts.cs.o2".info();
// add controls
statusLabel = this.parentForm().add_StatusStrip(Color.White);
BackColor = Color.White;
var topPanel = this.add_Panel();
var pictureBox = topPanel.add_PictureBox();
statusLabel.IsLink = true;
statusLabel.LinkBehavior = LinkBehavior.NeverUnderline;
statusLabel.set_Text(welcomeMessage).textColor(this, Color.Black);
results_RichTextBox = this.add_RichTextBox();
mainSplitContainer = topPanel.insert_Below(results_RichTextBox, 100)
.get<SplitContainer>();
mainSplitContainer.panel2Collapsed(true);
setupPictureBoxContextMenu(pictureBox);
pictureBox.load(FormImages.O2_Logo);
this.onDrop((file) => loadFile(file));
statusLabel.Click += (sender, e) => openSimpleScriptEditor();
//statusLabel.textColor(this, Color.Black);
// put this on menu item
//this.add_Link("reload",10,2,()=>loadH2Script());
"Buliding Gui complete".info();
});
}
示例2: buildGui
private void buildGui()
{
this.invokeOnThread(
() =>
{
"Buliding Gui for ascx_ExecuteScripts.cs.o2".info();
// add controls
statusLabel = this.parentForm().add_StatusStrip(Color.White);
this.BackColor = Color.White;
var topPanel = this.add_Panel();
var pictureBox = (PictureBox)topPanel.add_PictureBox();
//.location(20,20)
//.align_Bottom(this, 50)
//.align_Right(this,20);
/*statusLabel = (Label)topPanel.add_Label("Drop script on logo")
.location(this.Height - 40,60)
.anchor()
.bottom();*/
//statusLabel.Font = new System.Drawing.Font("Arial", 10, System.Drawing.FontStyle.Regular);
statusLabel.IsLink = true;
statusLabel.LinkBehavior = LinkBehavior.NeverUnderline;
statusLabel.set_Text(welcomeMessage).textColor(this, Color.Black);
results_RichTextBox = this.add_RichTextBox();
mainSplitContainer = topPanel.insert_Below(results_RichTextBox, 100)
.get<SplitContainer>();
mainSplitContainer.panel2Collapsed(true);
setupPictureBoxContextMenu(pictureBox);
// load data map actions
if (pathToPictureBox.fileExists())
pictureBox.load(pathToPictureBox);
else
"in ascx_Execute_Scripts.buildGui, could not find pathToPictureBox:{0}".error(pathToPictureBox);
this.onDrop((file) => loadFile(file));
statusLabel.Click += (sender, e) => openSimpleScriptEditor();
//statusLabel.textColor(this, Color.Black);
// put this on menu item
//this.add_Link("reload",10,2,()=>loadH2Script());
"Buliding Gui complete".info();
return; // to make this run in sync mode
});
}