English
Forum

Tab key on Dialog-Window

Controls with Tabulatortaste controlling, Order determine

 

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
 
04/25/23  
 




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
 
TC-Programming [...] 
XProfan 8.0 - 10.0 - X2 - X3 - X4

04/26/23  
 




Rainer
Hoefs
Hello and many Thanks for hint.
unfortunately functions it in my Program not.
Rainer
 
05/02/23  
 




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
 
Alle Sprachen
TC-Programming [...] 
XProfan 8.0 - 10.0 - X2 - X3 - X4

05/12/23  
 



Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

1.678 Views

Untitledvor 0 min.
Matzbub02/03/24
Rainer Hoefs09/05/23
Thomas Zielinski06/28/23
E.T.06/23/23
More...

Themeninformationen

this Topic has 2 subscriber:

Georg Teles (2x)
Rainer Hoefs (2x)


Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie