Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to change tab colours (In a Class)
Message
De
04/09/2000 04:24:08
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00411197
Message ID:
00412222
Vues:
21
>with this
>>> .Setall('Forecolor',rgb(128,128,128),'Page')
>>> .pages(.ActivePage).Forecolor = rgb(255,0,0)
>>> return .ActivePage
>>>endwith
>
>Cetin, thanks for your sample code, which I hve used, and it works fine apart from one 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


It's the same problem with all controls that could be reordered. Apply the fix Nick has provided.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform