Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Themes
Message
De
13/03/2003 16:13:02
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Re: Themes
Divers
Thread ID:
00764002
Message ID:
00765584
Vues:
23
>We already have hundreds of forms designed before the themes were suported, and some (probably most) forms do not look good with themes.
>For this reason, we would like to default to themes off, and give the user the option at the form level. As it is now, we can only default to themes on.

Not so. Because forms and each property have individual Themes properties, you can get what you want. Set Themes to .F. in your base form class. Set the Themes property (or Style property, where that's the right one) to True for the base control classes. Now, all it takes to turn themes on is to set Form.Themes to .T. for the individual forms.

To do this universally, add code in the base form class that checks for a property of the application object or for a global variable and turns form.Themes on if it's found and .T.

The key point in all of this is that if the user has turned themes off at the Windows level, your application has no business using them, and more importantly, can't.

I guess I see the point if your application is running as part of another application, but from the user's perspective, they're really both part of the same thing and should behave the same way.

The bottom line is that you're dealing with a hierarchy here. The top level is Windows. If Windows has themes turned off, your application simply can't use them.

The next level is the VFP executable. If themes are turned off there, your forms can't use them.

Next is the form. If themes are turned off at that level, the controls on the form can't use themes.

The bottom of the hierarchy is the individual control. If themes are on at all the other levels, the control can use them.

Tamar
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform