Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Label with Windows background
Message
De
06/08/2004 13:34:29
 
 
À
06/08/2004 11:27:26
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00928846
Message ID:
00931371
Vues:
41

My code also sets the backstyle of the container to 0 - transparent. Try this:
WITH .Page1.Container1
	.Style = 3
	.backstyle = 0    && add this
	.move(10,10,.Parent.Parent.PageWidth-20,.Parent.Parent.Pageheight-20)
	.Label1.move(10,10,.Width-20,.height-20)
ENDWITH


Jim, this is correct:
if Container transparent then
Label background color assumes the Container.Parents's background color.

Of course, on this case, Container Style it is irrelevant:
WITH .Page1.Container1
*	.Style = 3        && add or remove this not change the paint result
	.backstyle = 0
	.move(10,10,.Parent.Parent.PageWidth-20,.Parent.Parent.Pageheight-20)
	.Label1.move(10,10,.Width-20,.height-20)
ENDWITH
But the issue is different.
I expected that,
if the container is themed and opaque,
the Label's background color assumes the container's background themed color


With other words, expected behaviour is:
#If#      Label.Style = Themed
#then#    Label.BackColor = Label.FoundFirstParent('Themed And Opaque').BackColor
Thanks,
Fabio
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform