Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Color Picker?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Divers
Thread ID:
00524560
Message ID:
00524695
Vues:
18
>>Don't get me wrong... most of my labels are black text and transparent background. Here's a screenshot of a form with a few labels color matched to the titlebar. I think it looks pretty good :)
>
>FWIW, I like it (but I like red ;-)).
>
>Anyway, here is the WinAPI calls to get the Active Titlebar colors.
>#define COLOR_ACTIVECAPTION  2
>#define COLOR_CAPTIONTEXT    9
>
>declare integer GetSysColor in user32 integer
>lnbackcolor = GetSysColor(COLOR_ACTIVECAPTION)
>lnforecolor = GetSysColor(COLOR_CAPTIONTEXT)
>
>You could perform this in the label's Init and set the colors accordingly.

Thanks :)

GetSysColor definitely makes for cleaner code, but I'll sacrifice clean code for colors that show at design time any day ;)
Brien R. Givens

Brampwood Systems
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform