Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Label Width in subclass reverts to superclass value
Message
From
22/02/1999 16:53:40
 
 
To
22/02/1999 13:19:55
Rex Mahel
Realm Software, Llc
Ohio, United States
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00190044
Message ID:
00190171
Views:
13
>All,
>
>I am creating a builder. I have a class consists of a label and a textbox in a container. The builder adjusts the distance between the label and the textbox and sizes the container. I instantiate the container on a form and set the label caption. If the label in the container is visible, all is well. If the label is moved off the left side of the form, the form is saved and reedited, the label width is the default width (the width of the parent's label)

Are you depending on the Label.Autosize property to size your label? If so, you are seeing a known bug with that property. The workaround that I use is to set autosize temprarily, turn it back off, and adjust the width by one pixel. This last little adjustment is usually enough to make the size stick.
Erik Moore
Clientelligence
Previous
Reply
Map
View

Click here to load this message in the networking platform