home *** CD-ROM | disk | FTP | other *** search
Text File | 1995-09-24 | 1.5 KB | 36 lines | [TEXT/CWIE] |
-
- I've posted the source for a PowerPlant attachment that allows you to
- activate a button in a dialog (or a window) from the keyboard. The UI is
- the same as in Nisus (or WordPerfect 3); while you hold down the command
- key, a hint appears next to the button. For example, if the button is
- "Don't Save", you'll get a little cmd-D beside it; hitting cmd-d activates
- the button.
-
- from the .h file:
-
- /*
- * Attach an instance of LButtonKeyAtt to an LStdButton in a PowerPlant
- * window. If the user holds down the command key, a "*X" symbol will
- * appear next to the button - where * is the symbol on the command key
- * and X is the uppercase version of the first letter of the button.
- * If the user presses this key combination, the button is clicked.
- *
- * Placed in the public domain by Roger Pantos, Sept. 24 1995.
- */
-
- The only caveat is that it requires CW7, and that RTTI must be activated
- for the PowerPlant library and your own code. (This is necessary to allow
- downcasting from an LAttachable to an LPane, and for side-casting an LPane
- to an LCommander.)
-
- The source is in alt.mac.sources, comp.mac.sources, and will be on the
- PP web site as soon as I find my reference to it.
-
- Special thanks to Greg Dow, for putting attachments into PowerPlant.
-
- cheers,
-
- --
- Roger Pantos rpantos@io.org telesisnorth
- Mac Software Guy Telesis North, Inc. (AppleLink)
- I've got a Mac instead of a DOS box because I need a tool, not a hobby.