Walter Meester
HoogkarspelNetherlands
General information
Category:
Forms & Form designer
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,
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only