Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Auto Centering of Container on Form
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows 7
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01622935
Message ID:
01622983
Vues:
50
This message has been marked as a message which has helped to the initial question of the thread.
This might be handy...
http://www.foxite.com/uploads/21a7c925-1d31-44c1-a37c-f9c8cd2aff51.zip

>Hi Gang!
>
>Thanks for your help on previous problems!
>
>Today, I have this one.....
>
>I have a FoxPro form that is popped up on the screen when a certain amount of inactivity occurs.
>
>It pops up MAXIMIZED now with the WindowState property set to Maximized.
>
>I set it to that to HIDE what is behind the form so any user passing by could not see HIPPA data displayed on the screen.
>
>There is also a container on the form which has input textboxes for the user to type in the login name and password to get rid of the form and resume work.
>
>The container stays near the left and top of the form, no matter the size of the form ( some have 800 by 600 and some have all the way up to 1920 by 1080).
>
>I'd like for the container ( name is cntLocked ) on the form to stay CENTERED top to bottom and left to right, no matter the screen size.
>
>I tried adding this to the forms RESIZE event, but it had no effect....
>
>
>Thisform.cntLocked.Left = INT((Thisform.Width 	- Thisform.cntLocked.Width) /2)
>Thisform.cntLocked.Top  = INT((Thisform.Height   - Thisform.cntLocked.Height) /2)
>Thisform.Refresh
>
>
>Any ideas?
>
>Will I have to do a BindEvent ?
>
>Thanks!
ICQ 10556 (ya), 254117
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform