But I am not even able to access the top menu label.

In my application, I have a menu to select Interpolation as in

Fl_Menu_Item RunImageViewerGUI::menu_IP[] = {
{"Interpolation", 0,  0, 0, 64, FL_NORMAL_LABEL, 0, 14, 0},
{"Nearest", 0,  (Fl_Callback*)RunImageViewerGUI::cb_Nearest},
{"Linear", 0,  (Fl_Callback*)RunImageViewerGUI::cb_Linear},
{"Cubic", 0,  (Fl_Callback*)RunImageViewerGUI::cb_Cubic},
{"Sinc", 0,  (Fl_Callback*)RunImageViewerGUI::cb_Sinc},
{0,0,0,0,0,0,0,0,0},
{0,0,0,0,0,0,0,0,0}
};

And when user selects say, Nearest, I need the menubar label to change from 
"Interpolation" to "Nearest". So that user knows what is the interpolation now.

But printing menu->label() displays nothing.

Thanks,
Suja.

>
> On Jul 11, 2007, at 2:25 AM, Suja wrote:
>
> >> 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...
>
> Top-level menue labels are basically the same at submenu labels. The
> exception is, that you should call "redraw()" on the menu widget
> after you changed one of the titles of the menu bar.
>
> ----
> http://robowerk.com/
>
>

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

Reply via email to