Code: Select all
If OpenWindow(0, 10, 10, 300, 300, "Move me !", #PB_Window_SystemMenu | #PB_Window_SizeGadget)
Repeat
Event = WaitWindowEvent()
If event = #PB_Event_SizeWindow Or event = #PB_Event_MoveWindow
Debug WindowX(0)
EndIf
Until Event = #PB_Event_CloseWindow
EndIf
I can move windows and they stay moved but I am unable to save their position and always restart centered.
Resize works OK.
Jim