Class CadForm
- Namespace
- CADability.Forms
- Assembly
- CADability.Forms.dll
public class CadForm : Form, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable, IContainerControl, ICommandHandler
- Inheritance
-
CadForm
- Implements
- Inherited Members
Constructors
CadForm(string[])
public CadForm(string[] args)
Parameters
argsstring[]
Properties
CadCanvas
public CadCanvas CadCanvas { get; }
Property Value
CadFrame
public CadFrame CadFrame { get; }
Property Value
ProgressForm
public ProgressForm ProgressForm { get; }
Property Value
PropertiesExplorer
public PropertiesExplorer PropertiesExplorer { get; }
Property Value
Methods
Dispose(bool)
Clean up any resources being used.
protected override void Dispose(bool disposing)
Parameters
disposingbooltrue if managed resources should be disposed; otherwise, false.
OnClosing(CancelEventArgs)
protected override void OnClosing(CancelEventArgs e)
Parameters
OnCommand(string)
Process the command with the given MenuId. Return true if handled, false otherwise.
public virtual bool OnCommand(string MenuId)
Parameters
MenuIdstring
Returns
- bool
true, if handled, false otherwise
OnFormClosed(FormClosedEventArgs)
protected override void OnFormClosed(FormClosedEventArgs e)
Parameters
OnSelected(MenuWithHandler, bool)
Notify that the menu item is being selected. No need to react on this notification
public virtual void OnSelected(MenuWithHandler selectedMenuItem, bool selected)
Parameters
selectedMenuItemMenuWithHandlerselectedbooltrue, if selected, false if deselected
OnUpdateCommand(string, CommandState)
Update the command user interface of the given command. Return true if handled, false otherwise.
public virtual bool OnUpdateCommand(string MenuId, CommandState CommandState)
Parameters
MenuIdstringCommandStateCommandState
Returns
- bool
true, if handled, false otherwise
ProcessCmdKey(ref Message, Keys)
protected override bool ProcessCmdKey(ref Message msg, Keys keyData)
Parameters
Returns
ResetMainMenu(string)
Resets the main menu of the form. After MenuResource.SetMenuResource has been loaded, the mainmenu in CADability is changed to the new resource. In order to set this menu in the form, call this method.
public void ResetMainMenu(string debuggerPlaygroundClass)
Parameters
debuggerPlaygroundClassstringif not null, specifies an additional menue class, which will be created by reflection