Pane pane = new Pane();
pane.Enabled = true;
pane.Text = "状态条按钮";
pane.ToolTipText = "新建的状态条按钮";
pane.Visible = true;
pane.MouseDown += new StatusBarMouseDownEventHandler((o, e) => { MessageBox.Show("Hello!"); });
CADAPP.StatusBar.Panes.Add(pane);

04-16 23:43