MacArthur, Ian (SELEX GALILEO, UK) wrote:

> Is this a question about putting "icons" into menu items?

Well, I'd say yes and no ;-)

IMO there are two things to differentiate. Yassine wrote that he
created an [...@] symbol drawing function that should draw an image
(icon) instead of basic drawing functions.

> Do we even support that?

For basic symbols: yes, see test/menubar.cxx: "&Font" menu entry.

> I do not think that we did, but I have never tried it - it is not a
> thing that I like to do.

Maybe it's not a good idea, but the underlying problem is the same
for labels with @ symbols.

To Yassine: does your symbol drawing work in normal labels? (I don't
think so). For testing I'd try to draw a simple filled rectangle
first (fl_rectf(...)) and then the image. Where does the rectangle
appear? I assume that the rectangle will be positioned correctly,
but the image at (0,0) in the window coordinate space.

It would help if you could post a simple, but complete test case.

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

Reply via email to