Disable or activate a command button controls toolbar
The main use of Function:
_DMxDrawX::EnableToolBarButton
Disable or activate the control of a command button on the toolbar. Details are as follows:
parameter | Explanation |
---|---|
BSTR pButtonName |
Toolbar button name |
VARIANT_BOOL isEnable |
Whether disabled |
For example page deactivated On button code:
axMxDrawX1.EnableToolBarButton ( "Open dwg file", false);