WindowMaximized( window:TGadget )
WindowMinimized( window:TGadget )
WindowMinimized( window:TGadget )
Unless I am mistaken, which I might well be, then those commands only tells you if the window is either maximized or minimized, and they cannot be used to capture the event that someone clicks on the buttons. But one could ofcause make a flag variable which holds the current state, and then check that against the WindowMaximized result and then act on that.
Its just not the same as getting an actual event trigger from the user clicking. I have been trying to dig through the MSDN info, but haven't found any events that does this, so I am not even sure that it can be done internally in windows and therefore probably not be done with MaxGUI either.