Information générale
Catégorie:
Codage, syntaxe et commandes
Kevin thanks for your reply. I have this nearly working now except for the following problem:
In my page, I have 10 tabs. When I click on Page1 and Page 2, the correct tab changes colour. But if I click on tab 3, the fith tab changes colour. This also happens to other tabs..e.g if I click on tab 8, tab 10 changes colour.
I think this is because , at some stage, I moved the order of tabs around.
What eactly is the ActivePage proprty. In the help, it says it returns the NUMBER of the active page, but I cannot find a NUMBER property of the individual pages anywhere.
Any ideas of how to fix this problem.
Thanks for your help.
Gerard
>LOCAL nPage, nColor, lBold
>
>FOR nPage = 1 TO This.PageCount
>
> IF This.ActivePage = nPage
> nColor = 255 && Red
> lBold = .T.
> ELSE
> nColor = 0 && Black
> lBold = .F.
> ENDIF
>
> This.Pages[nPage].ForeColor = nColor
> This.Pages[nPage].FontBold = lBold
>
>ENDFOR
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement