Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Right Alignment with Auto Size
Message
 
À
03/11/1997 11:44:05
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00057985
Message ID:
00058077
Vues:
36
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform