EnableMenuItems

From Real Software Documentation

Jump to: navigation, search
Method

Forces an update of the menu bar and executes the EnableMenuItems event handler.


Syntax

EnableMenuItems

Notes

In most cases, Real Studio’s standard menu bar updating will be sufficient. There are cases, however, when it’s not. For example, if the SelChange event handler of a TextField control causes all of the menu items in a particular menu to be disabled, the menu itself should be disabled. Unfortunately, it won’t be because the user has not yet clicked in the menu bar. Under circumstances like this, you can call the EnableMenuItems method to force Real Studio to check the condition of the menus and redraw them if necessary.

Example

EnableMenuItems

See Also

MenuItem class.

Personal tools