Table of Contents

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

args string[]

Properties

CadCanvas

public CadCanvas CadCanvas { get; }

Property Value

CadCanvas

CadFrame

public CadFrame CadFrame { get; }

Property Value

CadFrame

ProgressForm

public ProgressForm ProgressForm { get; }

Property Value

ProgressForm

PropertiesExplorer

public PropertiesExplorer PropertiesExplorer { get; }

Property Value

PropertiesExplorer

Methods

Dispose(bool)

Clean up any resources being used.

protected override void Dispose(bool disposing)

Parameters

disposing bool

true if managed resources should be disposed; otherwise, false.

OnClosing(CancelEventArgs)

protected override void OnClosing(CancelEventArgs e)

Parameters

e CancelEventArgs

OnCommand(string)

Process the command with the given MenuId. Return true if handled, false otherwise.

public virtual bool OnCommand(string MenuId)

Parameters

MenuId string

Returns

bool

true, if handled, false otherwise

OnFormClosed(FormClosedEventArgs)

protected override void OnFormClosed(FormClosedEventArgs e)

Parameters

e FormClosedEventArgs

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

selectedMenuItem MenuWithHandler
selected bool

true, 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

MenuId string
CommandState CommandState

Returns

bool

true, if handled, false otherwise

ProcessCmdKey(ref Message, Keys)

protected override bool ProcessCmdKey(ref Message msg, Keys keyData)

Parameters

msg Message
keyData Keys

Returns

bool

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

debuggerPlaygroundClass string

if not null, specifies an additional menue class, which will be created by reflection