Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Right Alignment with Auto Size
Message
 
To
03/11/1997 11:44:05
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00057985
Message ID:
00058077
Views:
32
>I made a label class with autosize set to .t. and alignment set to right.
>
>This is so I can enter a caption like "Equip. no. :" on the screen and have the colons aligned. Also so I can change the caption at run time.
>
>The caption seems to 'jump' about 5 characters to the left after it is saved.
>
>Any help from anyone?

When you change the caption, you must:
1st: Save the 'right'(label.left+label.width) position of the label.
2nd: Set the new caption
3th: Set the new 'left' position (right-label.width)

HTH
:0)
If we exchange an apple, we both get an apple.
But if we exchange an idea, we both get 2 ideas, cool...


Gérald Santerre
Independant programmer - internet or intranet stuff - always looking for contracts big or small :)
http://www.siteintranet.qc.ca
Previous
Reply
Map
View

Click here to load this message in the networking platform