Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Auto Centering of Container on Form
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Auto Centering of Container on Form
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows 7
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01622935
Message ID:
01622935
Views:
74
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!
Tommy Tillman A+ NetWork+ MCP
Next
Reply
Map
View

Click here to load this message in the networking platform