Hi all,
sorry for spamming, but I have an other problem...
I change my code to include a menubar. (as in the example)
my old code :
-------------------------------
Fl_Window* window = new Fl_Window(0,0,WINDOW_WIDTH,WINDOW_HEIGHT, "FROG
Displayer");
window->end();
window->resizable(window);
window->show();
while(window->shown()){
Fl::check();
window->redraw();
}
-------------------------------
Has been changed to
-------------------------------
Fl_Window* window = new Fl_Window(0,0,WINDOW_WIDTH,WINDOW_HEIGHT+20, "FROG
Displayer_Main");
FROG_MainWindow* frog_window = new
FROG_MainWindow(0,20,WINDOW_WIDTH,WINDOW_HEIGHT, "FROG Displayer");
frog_window->end();
frog_window->resizable(frog_window);
frog_window->show();
frog_window->end();
Fl_Menu_Bar* menubar = new Fl_Menu_Bar(0,0,WINDOW_WIDTH,20);
menubar->menu(menutable);
menubar->callback(test_cb);
menubar->show();
window->end();
window->resizable(window);
window->show();
while(window->shown()){
Fl::check();
frog_window->redraw();
}
-------------------------------
But the callback get crazy...
for mouse callback everything seems to be fine...
but for keyboard callback, either the program crashes or it does nothing (while
it is suppose to do something with the key pressed).
What Did I miss again?
thanks for help,
Loic
_______________________________________________
fltk-opengl mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-opengl