On May 23, 2007, at 3:23 AM, steven marx wrote:

> What is the simplest way to detect the user mouse click event on the
> main window maximize button (upper right on window border) ?

Derive your own class from Fl_Window or Fl_Double_Window and override  
the resize(x, y, w, h) function. Whenever the user changes the size  
of the window, resize will be called with the desired position and  
size. There is no particular function to catch a maximize over a  
resize. But you can either watch the x, y, w, h values and compare  
them to the values in xywh_screen(), or you can add a handler with  
Fl::add_handler(int event) and  see if a systeem-specific maximize  
event is forwarded (see the documentation under os-specific functions).

Matthias

----
http://robowerk.com/


_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to