Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Labels not using the page backcolor
Message
From
24/01/2005 09:31:19
Metin Emre
Ozcom Bilgisayar Ltd.
Istanbul, Turkey
 
 
To
20/01/2005 06:08:46
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP1
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00978807
Message ID:
00979976
Views:
18
I met some trouble. Do not use transparent.
put these codes into your container and label classes:

this.backcolor=this.parent.backcolor


>I am trying to use labels on pageframes and get the label backcolor to match the color of the page.
>
>There is no problem if I put the shape and the label directly onto the page control but we never do that, we have lots of pre-built classes that are all based on containers. When we come to create a form we drop a pageframe onto the form and then add the required container classes.
>
>To reproduce what I am seeing all you need to do is put a pageframe onto a form, put a container onto a page and then place a shape and a label in the container with the label overlaying the line round the edge of the shape.
>
>We have the container's properties set to make it invisible, i.e. no border and transparent. The shape and label both have style set to themed.
>
>You will see that making the label's backstyle transparent makes its backcolor ok but the line of the shape is visible through the label, if you make the label opaque it prevents this but the backcolor of the label is now visible and no longer matches the page color.
>
>Please note the new VFP 9.0 'themed background only' setting makes no difference.
>
>It is as though the label is looking at the color of its parent (the container) and matching it but not taking into account that its immediate parent might be transparent and so it should look for the color of its parent's parent (the page).
>
>Does anyone have a suggested workaround for this problem? We have a big application currently in VFP 7.0 that we want to move forward to 9.0 but the user interface is heavily based on containers on pages.
>
>Many thanks
>
>David
Previous
Reply
Map
View

Click here to load this message in the networking platform