Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Label with Windows background
Message
From
06/08/2004 13:34:29
 
 
To
06/08/2004 11:27:26
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00928846
Message ID:
00931371
Views:
38

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
Previous
Reply
Map
View

Click here to load this message in the networking platform