Type: info
Title: SvLBox mnemonic handling
Posted by: [EMAIL PROTECTED]
Affected: -
Effective from: CWS dba23ui
*Summary*
--------
+ EnableEntryMnemonics
+ IsEntryMnemonicsEnabled
+ HandleKeyInput
+ SetCurEntry( ... ) = 0
+ GetCurEntry() = 0
*Description*
-------------
The SvLBox class (and thus derived classes, in particular the
SvTreeListBox) are now able to handle accelerator keys.
For this, the entry texts should contain mnemonics, and
EnableEntryMnemonics must have been called. Furthermore, key events
which happen in another window should be forwarded to the SvLBox'es
new HandleKeyEvent, which will recognize and handle accelerator keys.
SetCurEntry and GetCurEntry have been introduced since they're
necessary to select entries - all kwnon subclasses had those methods,
anyway.
The methods SelectSearchEntry and in particular ExecuteSearchEntry,
inherited from ::vcl::IMnemonicEntryList (see separate announcement),
might be implemented in derived classes, to change/extend the handling
of an entry being selected or "executed".
(an entry is "executed" when it's accelerator key is pressed, and this
key is unique within the entry list. If it isn't, then the entry is
only selected. That's the usual mnemonics behaviour you can observe
e.g. in menus.)
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]