I'm trying to make a fltk window that responds to key presses as well a buttons 
in the window.
My class inherits Fl_Double_Window and overrides:

int MyWindow::handle(int event){
        switch(event){
                case FL_KEYBOARD://keypresses
                        return this->handle_key(event, Fl::event_key());
                        break;
                default:
                        return Fl_Widget::handle(event);
        }
}

However after I do this, the window no longer registers when I click on the 
Fl_Button I've also added to my window.  How can I get my program to respond to 
both key presses and buttons?

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

Reply via email to