What's the App events for if a user tries to resize a d.gui window, move it, IS moving it, and IS resizing it?
DevilGUI Position Window
Blitz3D Forums/Blitz3D Programming/DevilGUI Position Window Hi,
here are tested/tryed examples for the "sample.bb".
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