How can I get a menu item to drop down by hovering the mouse?
In this program, clicking on the File menu will drop it down, and then I
can just move the mouse over the Edit menu to drop it down.
I need the File menu to drop down when I move the mouse over it without
the mouse click.
#include <FL/Fl.H>
#include <FL/Fl_Double_Window.H>
#include <FL/Fl_Menu_Bar.H>
int main(int argc, char **argv) {
Fl_Double_Window *win = new Fl_Double_Window(300,100);
Fl_Menu_Bar *menubar = new Fl_Menu_Bar(0,0,300,25);
menubar->add("&File/Open");
menubar->add("&File/Save");
menubar->add("&Edit/Cut");
menubar->add("&Edit/Copy");
menubar->add("&Edit/Paste");
win->end();
win->show();
return(Fl::run());
}
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk