Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Finding sysmetric info to build Office 2003 gradients
Message
De
07/06/2005 10:56:14
 
 
À
07/06/2005 10:38:13
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
01020266
Message ID:
01020940
Vues:
17
Hi Frank,

> here's some code that I used to generate my gradients:

Thank you, Frank, your code is a great example in helping me think through my design.

I assume that ...

1. your CreateGradient8() function creates a temp image file with a single pixel row(?) of gradient pixels with a width equivalent to the width of the active form or _SCREEN?

2. your RotateFlip flips your single row image into a single column image which you then stretch the width of your form as a toolbar like gradient?

Malcolm
>lnEndR = 255
>lnEndG = 255
>lnEndB = 255
>
>lnColor = GetSysColor(COLOR_HIGHLIGHT)
>lcRGB = x7colortorgbstring(m.lnColor) && VMP function
>
>lnStartR = VAL(STREXTRACT(lcRGB,"(", ","))
>lnStartG = VAL(STREXTRACT(lcRGB,",", ","))
>lnStartB = VAL(STREXTRACT(lcRGB,",", ")",2))
>
>this.imggradient.Picture = CreateGradient8( lnStartR, lnSTartG, lnSTartB, lnEndR, lnEndG, lnEndB)
>this.imggradient.RotateFlip = 1
>
>this.imggradient.Move( 0, 0, thisform.Width, 25 )
>this.imggradient.Stretch = 2
Malcolm Greene
Brooks-Durham
mgreene@bdurham.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform