Enable

This command will enable or disable a button on the menu strip by referencing its Display value. The code should check if the value is an INT and if so, treat it as an index. Otherwise, it should look up the parameter by name.

Group: Menu Strip Extensions


Syntax: MenuStrip.Enable(vDisplay, [bEnable])

vDisplay        (Variant) is the button’s string name (sDisplay) or index number.

bEnable         (Boolean) Set to True or False to enable or disable the button.

Example:

Menustrip.Enable(“Search”,false);

Menustrip.Enable(1,true);

Supported Versions:  RFgen 5.1 and newer.