PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → WINDEV 2024 → Using Tab Folders
Using Tab Folders
Débuté par Francisco Acedo, 09 nov. 2005 22:36 - 3 réponses
Posté le 09 novembre 2005 - 22:36
Hello to all.

I have a form with a lot of fields.
Some of these fields are grouped and located in tabs.
In the form editor there is no problem with the tab order.
But when the form is in production there is no way to operate the form without the mouse.

If i press tab in the last control in the plain part of the windows, the first control of the active tab in the tab folder takes focus; when i press tab again, the next field in the same tab are reached, and so on, until the last field on the same tab; BUT if i press tab in the last field of this tab, the focus is given to the next field OUTSIDE the tabfolder.

In other words, the last field of tab[1] should be followed for the first field in tab[2], changing tabs automatically and presented the next tab with all its fields, and then tab[3], etc.

Other problem is that i can't assign an shortcut directly to one tab. For example, F2 for tab[1], F3 for tab[2], etc.

In Windev8, if a control in a tab had an shortcut and that tab was not selected (but active) the tab corresponding to the control where selected and the control gave focus.

I think there is a problem in WD9 or i can not find the explanation because there is no help in english (i think this is not the case).
Posté le 10 novembre 2005 - 14:15
Hi,

I installed again WD8 and realized that the problem is the same in WD8.

Sorry, i was confused with clarion :(

BUT, the problem still exists in WD9.

If i could catch a keypressed in the window i could solve the problem ...
Posté le 10 novembre 2005 - 18:20
Hi Francisco

1 - put two buttons out of screen (Button1 & Button2)

2 - associate Button1 with F2 (Button_Description-GUI-Short Cut)
3 - in the code for Button1, insert the following code
YourWindow.YourTab = 1

4 - associate Button2 with F3 (Button_Description-GUI-Short Cut)
5 - in the code for Button2, insert the following code
YourWindow.YourTab = 2


I test, and works fine.

Guillermo
Posté le 12 novembre 2005 - 16:08
Hi Guillermo,

I already did this BUT with the 2 buttons in the window.

I tried to make them invisibles but doesn't work.

I totally forgot that i can put it outside the window.

Thanks a lot.

Be happy :)