Information générale
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Reposition labels on forms
Versions des environnements
Network:
Windows 2000 Server
Hi all
I need to call a form with some parameters and based on the parameters, change labels caption as well as hide some labels. After changing some label caption , I need to reposition the labels by computing the new left position of label.
My code in the form INIT method is as below :
Thisform.PGF.Page1.lbl_xyz.Left = Thisform.PGF.Page1.txt_beside.Left - Thisform.PGF.Page1.lbl_xyz.width -3
The above code will not work bcos the label width is inaccurate in the INIT method. If I create a command button and put the above code in the Click method, it will work.
I've tried putting the code in the Form Activate and Show methods as well as the Page Activate method, but could not get it to work. I would appreciate if you could point me to the right form Method that I should put the above code.
Thanks in advance
Best Regards
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement