Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Label with Windows background
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00928846
Message ID:
00928902
Views:
24
>I have a setup form which includes two sections. The first one is about the status bar options and the other about the regional information. So, I have those two sections surrounded by a rectangle. Then, on the upper left of each rectange, I have the title. This is having a bold black text. In order to have the text to be visible, I have put it Opaque. So, the text appears on top of the rectangle. But, the text need to have a background color. I am basically trying to have the same background color as the Windows settings of the user. Since I have moved to Windows XP, I see that the background color is different than the pageframe color which those objects sit on. How can I synchronize both?

Set the BackColor property value through Property Dialog with it's form's or page frame's value:
=thisform.backcolor 
&& or 
=thisform.opageframe.backcolor
Of course, you initialize this in the Init event of label by:
this.BackColor = thisform.backcolor 
&& or 
this.BackColor = thisform.opageframe.backcolor
Dawa Tsering


"Do not let any unwholesome talk come out of your mouths,
but only what is helpful for building others up according to their needs,
that it may benefit those who listen."

- Ephesians 4:29-30 NIV

Dare to Question -- Care to Answer

Time is like water in a sponge, as long as you are willing you can always squeeze some.

--Lu Xun, Father of Modern Chinese Literature

Previous
Next
Reply
Map
View

Click here to load this message in the networking platform