Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Dynamic Forms - Resizer Class
Message
 
 
To
10/12/1998 22:54:30
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00166422
Message ID:
00166829
Views:
17
Robert,

AutoSize=.t. labels don't get their .Width updated until the first form.Activate, the .Width is not correct at lbl.Init() or frm.Init() either. Right aligned labels don't necessarily need to be AutoSized.

>I just built a resize class using the code found in the Jan. Foxpro Adviser article by Donald Bouchier. It works great. But I wanted to add an enhancement. I wanted to reposition selected labels based on the right alignment position rather than the left. I have a group of text I want to maintain the right alignment. Adding the code was not that hard but what I found was that in the Init of all labels the width calculates to 40. So I had to reset the "originalWidth" on all labels on the second call to the resize class to get the correct right alignment position. Am I missing something or what.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform