> > On 14 Oct 2011, at 22:54, David wrote: > > > Doesn't look like there is a way to set a global default font, size, = > etc. =20 > > > Actually, there is a global font setting, it is set to size 14 in = > Fl_Widget.cxx , but is in global scope so can be over ridden at = > runtime... > > Do something like... > > extern Fl_Fontsize FL_NORMAL_SIZE; > > : > : > =09 > FL_NORMAL_SIZE =3D <some value other than 14> > > <create widgets...> > > And yes, FL_NORMAL_SIZE does not look like a variable name, but actually = > it is...=20 > > Similarly, all widgets are assigned the face FL_HELVETICA by default, = > but you can, if you so wish, simply change the font that is associated = > with that name, before you create your widgets, and they will "acquire" = > the desired face.=20 > > Or you can explicitly set the size/face per widget, of course, if you = > want to go that way. > > > > If that's true, I can change that so that either Fl or Fl_Widget has = > some static variables holding app wide defaults and use those in = > Fl_Widgets constructor. Otherwise, every time someone needs a different = > font type/style than the default (which I have a need for), every single = > widget has to have it set(lots of extra unneeded code). > > > What is it that you are trying to do? You've posted a fair number of = > queries and suggestions recently, many proposing changes that appear to = > be "already solved" in other ways, so I'm wondering what it is that you = > are trying to achieve that requires so much change? > >
Okay, I see that's actually a variable and not a #define, ALL_CAPS threw me, so that takes care of that. What I'm after is to reduce duplication and ease use of the frame work by apps while having widgets function in an intuitive way. The changes I made fixed the way check list boxes work (or browsers for fltk) and supported all existing features of the list boxes. It also fixed the input widgets to handle limiting input with a simple paramter setting (part was already there but needed to be expanded to other controls and fix so users setting values are also limited and combo boxes selections from being too long). _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

