PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → WINDEV 2024 → WD75: Tab Control event
WD75: Tab Control event
Débuté par Luis Alemán, 31 mai 2005 00:33 - 2 réponses
Posté le 31 mai 2005 - 00:33
Hello all:
I am trying to run some code when changing tabs on a tab control but can't find a way. The code is to hide a button outside the tab control when activating tabs different from tab 1.
I will appreciate if any one can drop a tip.
Thanks,
LAA
Posté le 30 mai 2005 - 02:51
Luis
Do this in the 'Whenever modified' code of your tab...
Each tab will return a numeric value 1, 2, 3, 4 etc from left to right when clicked.
There are a number of options available but the following should work for you.
SWITCH MySelf
CASE 1: MyButton..Visible = True
OTHER CASE: MyButton..Visible = False
END
HTH
Regards
DerekT
Posté le 30 mai 2005 - 05:23
Thanks, Derek. It worked nice.
I wasn't visualizing the return value as a modification. My fault.
laa
Luis
Do this in the 'Whenever modified' code of your tab...
Each tab will return a numeric value 1, 2, 3, 4 etc from left to right when clicked.
There are a number of options available but the following should work for you.
SWITCH MySelf
CASE 1: MyButton..Visible = True
OTHER CASE: MyButton..Visible = False
END
HTH
Regards
DerekT