HCmdButtonAttachment
Current Version: 1.2.1 released 31 January 1998
Price: freeware, see source/documentation for complete information
Download(136K)
A Metrowerks PowerPlant inherited class that gives controls (LControls) a
command-key equivalent. This allows for enhanced keyboard navigation. For
example, the traditional "Save before closing?" dialog asks to "Save",
"Cancel" or "Don't Save". Save is typically the default key (return) and Cancel
the cancel (escape), but there is no keyboard way to hit Don't Save. Enter
HCmdButtonAttachment. Make it cmd-D!
With HCmdButtonAttachment, you can give (almost) any LControl a command-key
shortcut. ou can specify the key to be the first letter/character of the
control's descriptor or it can be a character of your own arbitrary specification.
You can also have the title of the control change to display the shortcut
or not, and do so after a user-configurable amount of time.
This archive includes the HCmdButtonAttachment sources, a custom CTYP file
for use with Constructor 2.4 or later, and an example application to demonstrate
the class.