Hi,

Could somebody help me with the following problem, please?

I do not want to allow the user to close their application with Alt+F4 key 
combination. So I overloaded handle() method, and tried to catch FL_KEYUP 
message, then to ask if Alt key and F4 key are pressed together, if yes, then I 
returned with 1, otherwise with Fl_Double_Window::handle(event) function call.
The problem is, that FL_KEYUP message seems to be not coming at all to my 
window in this case, but the FLTK processes it so that the application is 
closing automatically:-(.
I tried to catch FL_SHORTCUT message, but then I get only the Alt key as an 
extra message, not the F4, which has been pressed as well.

I would appreciate any help.

Thanks.

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

Reply via email to