| Hi, 
 here are tested/tryed examples for the "sample.bb".
 
 
 
;sample.bb
;didnt work without Global
Global winmain,win_x,win_px,win_y,win_py
Function CreateSampleWindow(x = -1, y = -1)
;get position X and Y from the Window "winmain"
win_px=GUI_Message(winmain,"getx")
win_py=GUI_Message(winmain,"gety")
End Function 
Function UpdateSampleWindow()
;maximize "window" button
If GUI_Message(winmain, "getmaximized") Then 
	AppTitle "user maximized window"
	EndIf	 
;minimize "underline" "_" button
If GUI_Message(winmain,"getminimized") Then 
	AppTitle "user minimized window"
	EndIf 
;window "close" button
If GUI_Message(winmain,"getclosed") Then 
	AppTitle "user closed window"
	EndIf 
;not the best example but it work.
win_x=GUI_Message(winmain,"getx")
win_y=GUI_Message(winmain,"gety")
;comparing with startvalues from createwindow()
If win_x <> win_px Or win_y <> win_py Then 
	AppTitle "user moved window (x,y)"
	EndIf 
;same with sliders & co.
End Function
 
 
 |