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);
相关文章
- 12-24在CAD二次开发中使用状态条按钮