> Matthias Melcher wrote: > > In FLTK 1.3, you can use FL_ALIGN_IMAGE_BACKDROP for alignment. > > It will first draw the boxtype, then draw a centered image, then draw a > > centered text. > > PS: There are a lot of new alignment values in FLTK 1.3... . > > Cool! I've added a comment about that on the cheat page > for my 'text over image' examples. > > Here's a simple working example showing how to use that flag; > now one doesn't have to derive a widget just to get an image > to appear under button text. > > > #include <FL/Fl.H> > #include <FL/Fl_Window.H> > #include <FL/Fl_Button.H> > #include <FL/Fl_Pixmap.H> > #include "gradient.xpm" > // > // Demonstrate how to draw text over an image using new FLTK 1.3.x > "FL_ALIGN_IMAGE_BACKDROP" feature -- erco 10/25/10 > // For the example 'gradient.xpm' image, see: > http://seriss.com/people/erco/fltk/gradient.xpm
I think i might build 1.3 just to get that functionality! as far as the versions go i see on the download pages that 1.1 is listed as 'stable' but the others are not given this lofty status, i am planning on releasing a number of the projects i am working on commercially (beleive it or not!) and i need to know i am working with the most reliably portable etc version, would i be safe with 1.3? or stick with 1.1? As a matter of interest can ttf fonts be loaded as alternatives? Its just i had a nice one i sometimes use, not really concerned about it though, the inbuilt ones suit fine _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

