Welcome to the SRP Forum! Please refer to the SRP Forum FAQ post if you have any questions regarding how the forum works.

Trigger Event when OI Window Moved

When a user drags an OpenInsight window on the screen is it possible to trigger an event in OI to calculate the new position of the window? I can't find any QuickEvents for the window that trigger when the window changes position.

Comments

  • Never mind, I found the SIZE event is triggered when the window is moved on screen.
  • The SIZE event is triggered when you move or resize the form. You can then use the SIZE property to get the new size information.
  • You need to use the WINMSG event and filter for the WM_WINDOWPOSCHANGING message.
  • Thanks for the quick reply. The WINMSG event with the WM_WINDOWPOSCHANGING message sounds interesting but once I got past my preconceived notion that the SIZE event was only when the window was resized I found it works exactly like I needed as DonBakke suggested.
Sign In or Register to comment.