On 09.12.2009, at 01:08, yassine wrote: > I created custom symbols using fl_add_symbol, the draw function contain a > draw of a fl_PNG_Image at coordinates 0, 0. When I place the symbol on the > menu item, there is a blank space and the the icon is at the top of the menu. > I have to change the coordinates of the draw function to get the icon at the > correct position. > Is there a way to get the relative position of the menu items, note that > predefined symbols are correctly placed.
The symbols are positioned at the base line of the font. You can use the standard drawing functions to get the baseline and height of the current font. _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

