Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how could i stick my alert pop window on left side corner of my form being displayed

Status
Not open for further replies.

slmamd

Programmer
Jul 16, 2013
13
SA
hi all

may u please help.

i wanna display my alert pop window on left side corner of my form is being displayed ..

hope give a code ...

regards
 
What exactly is an "alert pop window "?

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)

Visual FoxPro articles, tips and downloads
 

Yep. (wait window) ..... how could i make it associated with my displaying form in left side corner ...
programmatically..

thanks

 
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.

I'd recommend using the ctl32 statusbar:
Bye, Olaf.
 
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)

Visual FoxPro articles, tips and downloads
 

thanks a lot
.........MikeLewis00......
.........OlafDoschke.....

i got some to start with ......

regards
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top