문제

Is there a way to get an edit control accessible, but out of the tabstop sequence? Eg I have

Gui, Add, Text, &a
Gui, Add, Edit, -Tabstop ReadOnly

I cannot tab to it (which is good) but i also cannot use alt-a to reach it nor can I reach it by mouse clicking it. This is a problem as the user cannot scroll and peruse its contents.

If one changes the - to a + one can reach it by tabs and alt-a. However I do not want it to be in the tabstop sequence. From the "GUI Styles" page of the AutoHotkey Help/manual these appear to be the only relevant styles for an edit command...

How can I have that control reachable, but outside the tab sequence?

도움이 되었습니까?

해결책

If you turn Alt-a into a hotkey, this is how you get the requested result

Gui, Add, Text, ,&a 
Gui, Add, Edit, -Tabstop Readonly vMyEdit, My Content
Gui, Add, Edit
Gui, Show
return

!a::
GuiControl,focus, MyEdit
return
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top