CADability dotNET
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.

Namespace: CADability
Assembly: CADability (in CADability.dll) Version: 1.1.4254.24737 (1.1.*)


public bool UpdateMenu(
	string MenuId,
	out CommandState commandState
Visual Basic
Public Function UpdateMenu ( _
	MenuId As String, _
	<OutAttribute> ByRef commandState As CommandState _
) As Boolean
Visual C++
bool UpdateMenu(
	String^ MenuId, 
	[OutAttribute] CommandState^% commandState


Type: System..::..String
Id of the menu item
Type: CADability.UserInterface..::..CommandState%
returne state of the menu item

Return Value

true if handled by CADability, false otherwise

See Also