| |
|
|
Rainer Hoefs | Hi,
I have already sought, but nothing found, vllt. incorrect Suchbegriff using.
How can I a tabulator-Control for Controls determine, particularly The right Order, sodaß the next Control with TAB angesprungen becomes, the previous with ShiftTab or AltTAb or StrgTab.
MfG Rainer |
|
|
| |
|
|
|
Georg Teles | Hello, have there what on The speedy found [...] and umgebastelt
$H windows.ph
cls
Declare b%[10]
Def OnTAB(0) MenuItem(9)
WhileLoop 0,10
b%[&loop] = create("button",%hwnd,"Button "+Str $(&loop),0,20*&loop,100,20)
EndWhile
SetFocus(b%[0])
WAY from 9,9,0
While 1=1
WaitInput
If OnTAB()
SetFocus(GetNextChild(%getfocus))
locate 2,20
Print "nächster " + GetText$(GetNextChild(%getfocus))+" "
locate 0,20
Print "aktuell " + GetText$(%getfocus)+" "
EndIf
EndWhile
Proc GetNextChild
Parameters h&
Var ID% = ItemId(h&)
Var hNext& = GetHandle(~GetParent(h&),ID% + 1)
Case hNext& = 0:hNext& = GetHandle(~GetParent(h&),1000)
Return hNext&
ENDPROC
gives sure a better Solution
Regards |
|
|
| |
|
|
|
Rainer Hoefs | Hello and many Thanks for hint. unfortunately functions it in my Program not. Rainer |
|
|
| |
|
|
|
Georg Teles | Hi,
Rainer Hoefs (02.05.2023)
unfortunately functions it in my Program not.
here ought to naturally in the Header Def OnTAB(0) MenuItem(9) not are missing and to the Loop SetFocus(b%[0]) and WAY from 9,9,0
hierbei ought to one whom first Button with SetFocus(_Handle_Button_) "fokusieren", so the plunge with the TAB-Button works
The code watts under X4 and X2 tested, goes ... möglicherweise have You The TAB Button with a others code already "reserviert/gelockt" ?
Regards |
|
|
| |
|
|