Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Reposition Common Dialog
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01057138
Message ID:
01057230
Views:
17
FoxPro Timer object can be used to reposition MESSAGEBOX and GETPRINTER() dialogs. This technique may work for other dialogs as well.

When you invoke a dialog, any existing FoxPro Timer instance keeps ticking on the background. So you may call a procedure from its Timer event. This procedure must find the dialog (for example, using GetWindow API call) and then call SetWindowPos API to position this window.

It's not exactly smooth, most of the times you see the dialog window "jumping" to the new position. And it requires some coding.

FoxPro code samples based on this technique (members area):

How to position the GETPRINTER() dialog
http://www.news2news.com/vfp/?example=482

Extended MessageBox Class
http://www.news2news.com/vfp/?example=418

How to change font name and size in the MessageBox dialog
http://www.news2news.com/vfp/?example=434
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform