The CADControl type exposes the following members.
Clean up any resources being used.(Overrides Control..::..Dispose(Boolean).)
CADability handles many commands invoked by the user interface. You will find all valid MenuIds in the MenuResource.xml file, that is provided with the installation. Use this method to invoke the execution of the desired action.
Displays the provided file in the control. The following file formats are supported:
If you use your own menu or toolbars and forward the execution of a menu via ExecuteMenu(String) to CADability you must know in advance the state of the menu items (like enabled or checked). When dropping down a menu is a good trigger to request for the states of the menu items. Toolbar items are usually updated on the OnIdle event of the application.
Returns the ControlCenter if there is a ControlCenter
Gets the frame property of this control. The frame contains the controlcenter and the toolbars (if activated) and one or multiple views on the CAD model.
Gets the Container for the left toolbars
Sets or gets the value whether to show the ControlCenter or not. The ControlCenter is placed right to the drawing or display area and seperated by a splitter, so it's size can be modified by dragging the splitter This property must be set at design time or at least before the CADControl is created
Gets or sets a value whether to show the Standard CADability Menu in the parent form of this control.
Gets or sets a value whether to show toolbars on the top and left side of the drawing or display area. The toolbars cam be moved around and positioned.
Specify the toolbars to be shown if ShowToolBars is true. A comma seperated list of the following items is expected: File, Edit, Zoom, Construct, Snap, Object
Gets the Container for the top toolbars
Provide a event handler if you want to be notified on command routed through this frame or to execute command handlers for some routed commands-
Provide a event handler if you want to control the appearnce of commands in the menu or toolbar (set the enabled and check flags).