Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Picky about buttons
Message
De
29/07/1999 14:10:19
Walter Meester
HoogkarspelPays-Bas
 
 
À
29/07/1999 11:44:11
Kenneth Downs
Secure Data Software, Inc.
New York, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00247657
Message ID:
00247828
Vues:
30
Kenneth,

>Perhaps you know something I don't. If I drop a shape onto a form, and I want it to take the color of the Active Title Bar, what combination of these properties achieves this?

Well, According to me, What you want does not follow the window Gui conventions, but can be achieved bij requesting the titlebar's RGB pair. (With the rgbscheme function) and making your own new colorscheme which says that the titlebar is of the same color as the background of the shape.

Then you set of the shape the colorsource property to 2 -Colorscheme property scheme and set the colorscheme to the scheme just modified.

Unfortunately the help in VFP 6 isn't going to help you regarding to the topic of colorschemes, You might look in the help of FPW 2.6 "colors overview" which explains what the contents of the scheme pairs mean exactly.

Example

c=REPL(rgbscheme(1,4)+",",9)+rgbscheme(4,4)
set color of scheme 16 to &c

draw a shape on the form.
Set Colorsource to 2 -Colorscheme
Set colorscheme to 16

Tata.... The shape is the same color as the titlebar

I must admit that I didn't try this within VFP under all conditions. You might have to play arround to figure it out if it fit your needs.

Of course there are object that are displayed in Windows color under all conditions like the commandbutton, the arrows of a scrollbar etc.

These can only be controled in the appearance tab of the display properties.

Walter,
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform