>>>>>Hi,
>>>>>
>>>>>If you look at the attached image, you may notice that the label controls have a darker shade gray background.
>>>>>What cause this? If not for this dark background, the label would look on the form "cleaner"
>>>>>TIA
>>>>
>>>>Something I don't understand. Default form backcolor is 240,240,240. Default backcolor of a label is the same, 240,240,240. Why then if I leave the backstyle of label class as 1, the label background has a darker shade of gray?
>>>
>>>I realize now why I was having the issue with the backstyle (wasted the time). My controls (labels and others) are on the container and the containers are on the PageFrame. The containers are transparent. And the default backcolor of a PageFrame is white (100, 100, 100). This is why I saw the dark gray background behind the labels.
>>>And I don't want to change the PageFrame backcolor, so I will leave it all alone.
>>>
>>>Update. The backcolor of pages of the PageFrame is also 240, 240, 240. But it looks very white. Confused again :)
>>
>>And gray blind, too. White is 255,255,255. Anything else is fake white, at best. 100,100,100 is gray (if we're talking rgb, as it seems we are). The 240,240,240 is perhaps the color of ceramic tiles which they sell as "arctic white" or just "white", but, hey, they can call it whatever they want, it's still gray.
>
>The oddest thing was when last night I connected to two different customers's VM servers (via RDP). The same application looks different on either. In one case the PageFrame is white (as is on my computer) and in another case the PageFrame is gray - exactly as the gray of the form. I decided to not to be concerned about this "issue" any more.
Just in case you didn't realize, but if when themes are enabled, then the colour values would be (generally) ignored and what you'll get are the colours selected in the Windows theme. Perhaps most confusing is that this means that at design time and run time, these colour values may not always reflect what you see. Also potentially confusing is that labels have STYLE setting can have values of 3 (Themed) and 4 (Themed Background Only), but controls such as checkboxes and option buttons don't.
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement