Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Label control has dark gray background
Message
De
25/11/2019 09:53:18
 
 
À
25/11/2019 08:07:02
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
01671981
Message ID:
01672051
Vues:
51
>>>>>>>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"
>>>>>>
>>>>>> .backstyle=0
>>>>>
>>>>>Of course there is the potential problem with transparent background with some controls due to "side effects" of antialiasing -- subsequent repaints of screen would cause the text to look "smudgy," and in low bit-depth colour (16 color mode, and sometimes 256 color mode -- though those modes are probably not likely nowadays) modes you could start getting "speckles" of various colours from dithering.
>>>>
>>>>Are you saying that it is "safer" to keep the backstyle set to 1?
>>>
>>>Just warning you of potential downside to having transparent background for labels. This "side effect" will possibly end up being more annoying than the slightly different background colour.
>>
>>Thank you. I think I will stay with the current value, backstyle = 1; until I see a benefit without a downside.
>
>I don't remember when was the last time I saw something of that effect... perhaps 2002.
>
>But if you want to go with non-transparent (and there may be a good reason for that - a stretching object which may be overlaid by your label, with transparency may become quite unreadable), you may put
>
>this.backcolor=this.parent.backcolor
>
>in label's .uienable (not .init(), because parent's .init() executes later, and it may set its .background differently from its default value).

The "gotcha" is that when THEMES is set to .T. the BACKCOLOR values don't apply.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform