2019년 8월 30일 금요일

[C#/Mono] Status


wStatus.cs



using System;
using System.Drawing;
using System.Windows.Forms;

public class WStatus : WCtrl
{
 StatusStrip status;
 ToolStripStatusLabel label;
 
 public WStatus() {
  ctrl = status = new StatusStrip();
  label = new ToolStripStatusLabel();
  label.Name = "StatusText";
  label.Text = "Ready";
  //this.label.Size = new Size(39, 17);
  //this.label.Click += new EventHandler(this.ToolStripStatusLabel1_Click);
  
  status.Items.Add( label );
 }
 
 public void SetText(string text) {
  label.Text = text;
 }
 
};

댓글 없음:

댓글 쓰기