Re: [fltk.general] default fonts

2011-10-15 Thread Ian MacArthur
On 15 Oct 2011, at 17:32, Greg Ercolano wrote: On 10/15/11 08:19, Ian MacArthur wrote: On 15 Oct 2011, at 04:44, David wrote: I see that's actually a variable and not a #define, ALL_CAPS threw me Yup - throws me too, every time. And I assume everyone else... I guess it is historical -

Re: [fltk.general] default fonts

2011-10-15 Thread Greg Ercolano
On 10/15/11 09:37, Ian MacArthur wrote: On 15 Oct 2011, at 17:32, Greg Ercolano wrote: We should provide a better way. eg. Fl::default_font() and Fl::default_fontsize() and change the hardcoded FL_HELVETICA in Fl_Widget. Yup - that'll be one for fltk3. Will break some of

Re: [fltk.general] default fonts

2011-10-15 Thread David
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). Hmm, yes, But I think the way

Re: [fltk.general] default fonts

2011-10-15 Thread David
On 10/15/11 09:37, Ian MacArthur wrote: On 15 Oct 2011, at 17:32, Greg Ercolano wrote: We should provide a better way. eg. Fl::default_font() and Fl::default_fontsize() and change the hardcoded FL_HELVETICA in Fl_Widget. Yup - that'll be one for fltk3. Will break some

[fltk.general] default fonts

2011-10-14 Thread David
Doesn't look like there is a way to set a global default font, size, etc. 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

Re: [fltk.general] default fonts

2011-10-14 Thread Ian MacArthur
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. 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

Re: [fltk.general] default fonts

2011-10-14 Thread Greg Ercolano
On 10/14/11 14:54, David wrote: Doesn't look like there is a way to set a global default font, size, etc. I think you can set the default font size with this rather odd looking code that looks like it's setting a macro: int main() { FL_NORMAL_SIZE = 20; ..create widgets..