Hi, Buck -
I'm attaching a very small PB 2019 R3 app that illustrates one way to accomplish this.
The window uses the Other event, looking for event message ID 562, or WM_EXITSIZEMOVE. The Windows O/S sends this event message to a window whenever the window is moved or resized (because if you resize a window by dragging its upper-left corner, you are in essence, moving the position of its origin).
There is no corresponding pre-defined pbm_exitsizemove event ID provided by PowerBuilder, so you have to use the Other event. Due to the sheer volume of calls to a window's Other event, I suggest you keep any code in it as small, quick and clean as possible. In this example app, I post an unmapped user event in the window and reset a Boolean instance variable.
Windows also sends a window the WM_ENTERSIZEMOVE (561) event message ID when the user initiates a move/resize action on the window.
You should carefully and thoroughly test this concept before putting it into a production application, but I hope this helps you accomplish your task.
Best regards, John