CADability dotNET
The CADControl type exposes the following members.
Constructors
Name | Description | |
---|---|---|
CADControl | Initializes a new instance of the CADControl class |
Methods
Name | Description | |
---|---|---|
Dispose |
Clean up any resources being used.
(Overrides Control..::..Dispose(Boolean).) | |
ExecuteMenu |
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.
| |
OnHandleCreated | (Overrides Control..::..OnHandleCreated(EventArgs).) | |
OnPaint | (Overrides Control..::..OnPaint(PaintEventArgs).) | |
OnSizeChanged | (Overrides Control..::..OnSizeChanged(EventArgs).) | |
ShowFile |
Displays the provided file in the control. The following file formats are supported:
| |
UpdateMenu |
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.
|
Properties
Name | Description | |
---|---|---|
AdditionalMenues | ||
AdditionalPopups | ||
ControlCenter |
Returns the ControlCenter if there is a ControlCenter
| |
Frame |
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.
| |
LeftToolBars |
Gets the Container for the left toolbars
| |
ShowControlCenter |
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
| |
ShowMenu |
Gets or sets a value whether to show the Standard CADability Menu in the parent form of this control.
| |
ShowToolBars |
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.
| |
ToolBars |
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
| |
TopToolBars |
Gets the Container for the top toolbars
|
Events
Name | Description | |
---|---|---|
FilterDragDrop | ||
FilterDragEnter | ||
FilterDragGetData | ||
FilterDragLeave | ||
FilterDragOver | ||
FilterKeyDown | ||
FrameCreated | ||
ProcessCommandEvent |
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-
| |
UpdateCommandEvent |
Provide a event handler if you want to control the appearnce of commands in the menu or toolbar
(set the enabled and check flags).
|