02-06-2004, 05:34 AM -
Quote:corny
Quote:No. The first level is automatically expanded, but the second one isn't.I do not understand clearly <!--emo& TLB works this way:
* You type the beginning of item name
* When TLB found there are only one item that can be selected and this is menu TLB opens menu
What second level it must open?
See attached image. In this situation, the folder CAI can be opened automatically, because there are no other items in the DHV folder available.
Quote:Yes MS Word menu works without ALT. But in case of TLB there can be unexpected behaviour: TLB select items by first typed chars. ALT+key is standard Windows behaviour for accelerators in dialogs.
I've created several applications with Borland C++ Builder, but the accelerators I've defined also work without the ALT key. Isn't it possible after you've captured the keypress to:
1st: check if there's an accelerated key for this keypress, and if not
2nd: check if there's an item starting with the pressed key?
IMHO, you're currently processing the 2nd item only when ALT key isn't pressed, and only processing the 1st item when ALT key is pressed.
Kind regards,
Cornelis
WinXP Pro#5.1.2600.SP2 IE#7.0.5730.11 Shell#6.0.2900.3051
TLB#4.1.6 RC1 StartKiller#2.3
Add Or Remove Programs#1.0.0.0 Batch Run#1.0.0.0 CommandLine#3.6.0.0 Device Manager#1.0.0.0 NetMonitor#1.5.0.0 Service Manager#1.0.0.0 TurnOffComputer#2.6.0.0
Cornelis
WinXP Pro#5.1.2600.SP2 IE#7.0.5730.11 Shell#6.0.2900.3051
TLB#4.1.6 RC1 StartKiller#2.3
Add Or Remove Programs#1.0.0.0 Batch Run#1.0.0.0 CommandLine#3.6.0.0 Device Manager#1.0.0.0 NetMonitor#1.5.0.0 Service Manager#1.0.0.0 TurnOffComputer#2.6.0.0