All Manuals > CAPI User Guide > 3 Creating Common Windows > 3.1 Generic properties > 3.1.4 Mnemonics

NextPrevUpTopContentsIndex

3.1.4.1 Controlling Mnemonics

For individual buttons, menus, menu items and title panes, you can use the :mnemonic initarg to control them. For example:

(capi:contain (make-instance 'capi:push-button
                             :data "FooBar"
                             :mnemonic #\B))

For more information on mnemonics in buttons, see Mnemonics in buttons and the LispWorks CAPI Reference Manual .

For information on controlling mnemonics in button panels, see Mnemonics in button panels. For information on controlling mnemonics in menus, see Mnemonics in menus.

The initarg :mnemonic-title allows you to specify the mnemonic in the title for many pane classes including list-panel , text-input-pane and option-pane . Also grid-layout supports mnemonic-title when has-title-column-p is true. For the details see titled-object in the LispWorks CAPI Reference Manual .


CAPI User Guide (Windows version) - 30 Aug 2011

NextPrevUpTopContentsIndex