OWLNext    7.0
Borland's Object Windows Library for the modern age
Loading...
Searching...
No Matches
Working with command-enabling

If you receive a command-enabling message and the handler function was called, you can perform actions using the command-enabling object passed to the handler function.

This section discusses the various types of command-enabling objects.

ObjectWindows provides three predefined command-enabling objects:

  • TCommandEnabler is the abstract base class for command-enabling objects. It's declared in the header file window.h.
  • TMenuItemEnabler is the command-enabling class for menu items. This class enables and disables menu items, sets check marks by menu items, and changes menu item text. This class is declared in the source file FRAMEWIN.CPP.
  • TButtonGadgetEnabler is the command-enabling class for button gadgets. This class enables and disables button gadgets and toggles boolean button gadgets. This class is declared in the source file BUTTONGA.CPP.

See Also