public HCViewTool() : base() { FToolOffset = -4; FActiveItem = null; FHotToolBar = null; FUseTableTool = true; FUseImageTool = true; FTableToolMenu = new ContextMenuStrip(); ToolStripMenuItem vMenuItem = new ToolStripMenuItem("重设行列"); FTableToolMenu.Items.Add(vMenuItem); vMenuItem.DropDownItems.Add("2 x 2").Click += delegate(object sender, EventArgs e) { this.ActiveTableResetRowCol(2, 2); }; vMenuItem = new ToolStripMenuItem("表格属性"); vMenuItem.Click += DoTableToolPropertyClick; FTableToolMenu.Items.Add(vMenuItem); FTableToolBar = new HCTableToolBar(); FTableToolBar.OnUpdateView = DoTableToolBarUpdateView; FTableToolBar.OnControlPaint = DoTableToolBarControlPaint; FImageToolBar = new HCImageToolBar(); FImageToolBar.OnUpdateView = DoImageToolBarUpdateView; FImageToolBar.OnControlPaint = DoImageToolBarControlPaint; }
public HCViewTool() : base() { FToolOffset = -4; FActiveItem = null; FHotToolBar = null; FTableToolBar = new HCTableToolBar(); FTableToolBar.OnUpdateView = DoTableToolBarUpdateView; FImageToolBar = new HCImageToolBar(); FImageToolBar.OnUpdateView = DoImageToolBarUpdateView; FImageToolBar.OnControlPaint = DoImageToolBarControlPaint; }