Do you mean you want to display a form on the left side of the screen? If so, you simply set the form's Left property to an appropriate value.
Or you referring to a WAIT window? If so, you can use an AT clause to specify the location of the window.
Or maybe you mean a MessageBox? In that case, you can't adjust the position of the box. The only solution would be to create a custom MesageBox, that is, a form that looks and behaves like the built-in box.
If this doesn't answer your question, please explain what you are trying to achieve.
Mike
__________________________________
Mike Lewis (Edinburgh, Scotland)
See the help topic of WAIT WINDOW, AT clause. Also see OBJTOCLIENT and SYSMETRICS. Wait Window position is given as row,col, not in pixels, and is given in desktop position, while 0,0 of the screen is under screen toolbars, 0,0 for the wait window means upper left desktop corner. That's the difficulties.
The standard way to let a form display form specific messages would rather be the status bar, anyway, and the StatusbarText of controls. The main status bar is driven by that.
The wait window is designed to always display at the right upper corner, so users know where to look for any message, that's a very VFP specific way of an alert message.
The simplest solution might be to create your own form. You can make it look like the WAIT window, but you can display it anywhere you like (by changing its Top and Left properties).
To make it display in a specific position relative to your main form, set its Top and Left to given values relative to the Top and Left of the main form.
In any case, the built-in WAIT window is not a normal Windows feature. Some developers prefer not to use it at all in an end-user system.
Mike
__________________________________
Mike Lewis (Edinburgh, Scotland)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.