Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Windows 2000 style title bar gradients
Message
 
À
07/11/2001 13:12:03
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00578609
Message ID:
00579104
Vues:
25
This message has been marked as the solution to the initial question of the thread.
Hi,
There is GradientFill() API function (implemented on Win98/2000).
To retrieve system colors of gradient titlebars, use GetSysColor() with COLOR_ACTIVECAPTION (left side color), COLOR_GRADIENTACTIVECAPTION (right side color), COLOR_INACTIVECAPTION, COLOR_GRADIENTINACTIVECAPTION.

>Window titlebars in Windows 2000 are 'painted' with a gradient fade whose fade formula appears to be dependent on the width of a window, i.e. the wider a window, the 'slower' the fade.
>
>Does anyone know how these fades are accomplished? Are there sysmetric() style properties that determine the starting and ending fade color and/or the characteristics/angle/direction of the fade?
>
>Are there Windows API functions (or VFP code equivalents) that can be used to paint a gradient within a specific region of a form or container? Might it be possible to use a gradient background image that gets 'stretched' to fill its container?
>
>Possible uses:
>
>1. Designing a class that acts as a replacement for a standard Windows titlebar where one would want to duplicate the Windows 2000 gradient effect of a native titlebar
>
>2. As a way to fill specific containers (forms, containers) with a specific background effect (similar to the gradient effects available in PowerPoint and Word boxes)
>
>Any feedback appreciated - including comments regarding the sanity of this posting ;)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform