> Kveto Ilencik wrote: > > I do not want to allow the user to close their application with Alt+F4 > > key combination. > > Trapping ALT-F4 is similar to preventing closing the window via the > 'X' button at the top right of windows.
The thing is, I don't think this is what the OP was asking. Installing a callback for the window controls what happens when the user does anything that the window manager interprets as "close the window," including 'x' and sometimes alt-f4. If I read the post right, I think he wants to avoid responding to alt-f4, without changing anything else. I think that would require something platform specific, not possible through the fltk api. _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

