How to recognize when a window was moved?

moveIT

New Member
Progress 9.1D07 (Windows XPSP2)

I need to run some 4GL code when the window was moved with the mouse! Is there a way to recoginze this? Somthing like a END-MOVE-Trigger to the window would be great but doesn´t work!

Thx!
 
Can't you use the mouse events for it? Just store the initial X and Y of the window and after each left-mouse-up for instance check if the X and Y have changed. If so then do the action you like.
(Unfortunately this doesn't work if you move the window with the keyboard...)

Casper
 
Thanks for your effort! I tried all possible mouse triggers but none fired! It seems that there is no way to recognize this!
 
afaik, progress does not capture events not inside a window, including the window's title bar.

you'll need to use MsgBlaster http://oehive.org/node/464. extract the ocx file and drop it into the window.

from the MsgBlaster help file -

<quote>This ocx is free for any purpose, and anybody can distribute it freely.</quote>



i've put together a short sample using the MsgBlaster with the WM_MOVE message, and the OE Hive :)

http://msdn2.microsoft.com/en-US/library/ms632631.aspx

hth
 

Attachments

Back
Top