Suja wrote:
> Thanks...But this example shows how to change submenu labels.
> I need to change the menubar label itself...am not able to make it work
> the same way described as submenu's...
> please help.
Although menubars can have labels, I've never personally even
seen or needed a menubar with a label.. normally the menubar
has no label at all, just a bar with submenus in it.
That said, you should be able to change the menubar's label
by just calling menu->label("some new label");, and telling the
parent window to redraw, e.g. from the example:
void Change_CB(Fl_Widget *w, void *) {
Fl_Menu_Bar *menu = (Fl_Menu_Bar*)w;
menu->label("Some text"); // ***
menu->window()->redraw(); // ***
..
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk