Group: Forum Members
Last Active: 12 Years Ago
Posts: 71,
Visits: 1
|
Couldn't find a way to enable the context menu and the keyboard from the following code
NKeyboardTool keyBoardTool = nDrawingView1.Controller.Tools.GetToolByName(NDWFR.ToolKeyboard) as NKeyboardTool; NContextMenuTool contextMenuTool = nDrawingView1.Controller.Tools.GetToolByName(NDWFR.ToolContextMenu) as NContextMenuTool; contextMenuTool.Enabled = true; keyBoardTool.Enabled = true; nDrawingView1.Controller.Tools.SingleEnableTool(NDWFR.ToolContextMenu); nDrawingView1.Controller.Tools.SingleEnableTool(NDWFR.ToolKeyboard);
|