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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Form window move event?

Status
Not open for further replies.

Totte

Programmer
Jun 6, 2001
317
SE
I have a program which consist of several forms which can be shown or not. I would like to be able to preserve a certain "look" with the different forms and thus i would like to save their position on the screen, this part is the easy and already done.

My problem is that i can't find an "OnMoveForm"-event, is there none?

As of now i use a timer to check the location and checks with the previous location and thus updates when nessecary but it's a "stoneaxe"-solution in my eyes.

Does any event exist for "done relocating form"?

Totte
Keep making it perfect and it will end up broken.
 
I sorry, I don't quite understand what you want to do with the "OnFormMove" event?


James P. Cottingham
-----------------------------------------
I'm number 1,229!
I'm number 1,229!
 
A Form has a number of "On..." events, ("OnResize", "OnActivate", "OnClick" and so forth) and what I'm looking for is an event that occurs when the Form has been moved to a new location on the screen.

The result would be that when i start my program the main form comes up as usual. If I then klick in the blue bar in the very top of the form and drags it to another place on the screen (or "tabletop") i would like an event to occur triggered by that behavior.

But does it exist?

Totte
Keep making it perfect and it will end up broken.
 
Hmm. See if any of these commonly asked questions will help. Since there isn't an event that will do it, you may have to edit the WM_NCHITTEST or system command or something similar.



James P. Cottingham
-----------------------------------------
I'm number 1,229!
I'm number 1,229!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top