Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
236,233,216
Message
From
05/10/2009 19:57:07
 
 
To
05/10/2009 00:21:01
General information
Forum:
Visual FoxPro
Category:
Pictures and Image processing
Title:
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01427677
Message ID:
01427829
Views:
92
>>A checkbox's default backcolor is rgb(236,233,216). Its backstyle is 0 (transparent) and its SpecialEffect is 2 (hot tracking), thus showing the image under it. When I change the backcolor to some other value, the transparency is gone. That's fine. If I change back the backcolor to 236,233,216 the transparency is there again. That's also fine. Questions:
>>
>>Can I rely on that value 236,233,216? Or is it influenced by e.g. the Themes, Colorscheme or Colorsource property?
>>
>>Is this value 236,233,216 a special one with regard to transparency?
>Peter
>
>The VFP default backcolor for a checkbox is RGB(226,226,226) (system colour I suppose)
>The backcolor should not have any effect if the BackStyle = 0 (Transparent) with and without an image.
>
>I have tried different combinations of Themes, SplEffect, Backcolor and BackStyle.
>
>The only time I see the BackColor is if the Backstyle = 1
>
>There must be something else affecting this.

Hi Bernard

I assume the default varies also with the OS. The values 236,233,216 have been reported in several threads on the internet, so it is not an idiosyncratic value that is only occurring on my machine. Note: It is first seen by me in VFP9 sp1. PC has XP-sp2.

The backcolor does have effect with specialeffect 2 (hot tracking) and backstyle 0 (transparent) the moment you hoover over or select the checkbox. In case you select, the OS will adjust the color with 35% (from my head) in the upper part. When I programmatically change the backcolor (even slightly), the checkbox is no longer transparent, which makes sense. When I change it back to the original value, the checkbox is again transparent, which also makes sense.

What I do now, is store the initial value in a property, change the backcolor when it is selected and use the stored value to restore the transparency.when it is deselected. What I can't do is set the backcolor in advance. It would not display transparent.
Groet,
Peter de Valença

Constructive frustration is the breeding ground of genius.
If there’s no willingness to moderate for the sake of good debate, then I have no willingness to debate at all.
Let's develop superb standards that will end the holy wars.
"There are three types of people: Alphas and Betas", said the beta decisively.
If you find this message rude or offensive or stupid, please take a step away from the keyboard and try to think calmly about an eventual a possible alternative explanation of my message.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform