On 03/03/12 08:34, yannick wrote:
> I want menu to look like this:
>
> +---------+
> |@ Foobar |
> |# bar |
> |$ baz |
> +---------+
>
> where @, #, and $ represents images. But when I set image it show only that
> image, no text.
> Right now I'm using FLTK v1.3.x-r9260.
Don't know, someone else might be able to help with that.
> btw. when i use Fl_Menu_Button::add I have index but to convert it to
> Fl_Menu_Item* I need to do some ugly casts. Why there is no method to
> get it by index?
IIRC, Fl_Menu_Button derives from Fl_Menu_, and Fl_Menu_::menu()
returns the pointer to the menu array.
So to get the item by index:
menu()[index]
..should return the item, e.g.
const Fl_Menu_Item *item = menubut->menu()[index];
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk