I am trying to build a launcher using AHK.
And hope to implement the feature that AlmRUN has, that is "Focus Edit control and Listview simultaneously".
In detail, it means:
1) have a caret in the Edit control at any time (green circle), so that one can input string directly, no need to focus the Edit control by pressing shortcut stroke
2) always focus on the 1st row in the Listview (red arrow), so that one can use Enter to activate the corresponding command directly, no need to press {Tab} and press arrow key to select the item.
Here is what AlmRun looks like.
How to focus an Edit control and a Listview simultaneously?
How to focus an Edit control and a Listview simultaneously?
- Attachments
-
- Altrun.png (30.06 KiB) Viewed 697 times
Re: How to focus an Edit control and a Listview simultaneously?
I think you you want something like incremental search? I'am writing this on my Ipad so I can't give you an example. There are some examples in this forum.
Re: How to focus an Edit control and a Listview simultaneously?
The focus can only be set to one control.
What you want is that the edit control has the focus and the listview has the first item selected. A button can be the default button. The default button catches the enter key.
What you want is that the edit control has the focus and the listview has the first item selected. A button can be the default button. The default button catches the enter key.
ciao
toralf
toralf
Who is online
Users browsing this forum: Billykid and 170 guests