Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Highlighting first item in QM menus
#1
Quote:Is there a way to automatically hilight a menu item when a QM popup menu is
displayed (so that Enter will choose that item without having to hilight via
arrow keys)?

Quote:2) Select first drop-down menu item (i.e., select New when Alt+F drops down
File menu)

Create function:

Name: qm_menu_hilite
Trigger (paste in the Trigger field on the toolbar): !cv"" "#32768" /QM
Code:
Copy      Help
;\

;is first item selected?
int hwnd=val(_command)
Acc a=acc(hwnd)
a.Navigate("first child1")
if(a.State&STATE_SYSTEM_FOCUSED) ret

;select first item using down arrow
PostMessage(hwnd WM_KEYDOWN VK_DOWN 0)

err+
#2
thats a nice one.
i think you should move it to resources.
pi
#3
I think some day I'll collect links to topics like this and add to resources as single topic.


Forum Jump:


Users browsing this thread: 1 Guest(s)