Am 17.02.2010 02:12, schrieb Domingo Alvarez Duarte:

> Thanks for your contribution I did something like that too and got
> the same problem you've got and this is way I'm proposing add a bit
> more of cheap_rtti to fltk.

Okay, but I solved the problem, without need to patch all FLTK classes.
There is standard rtti working and you can get rid of cheap_rtti by
using dynamic_cast. Please look to file
http://www.tantec.de/komponenten/FLTK/font_size/Fl_Fonts_Dialog.cpp
and view method Resize_Fonts() - there are only a few basic classes you
need to cast to for beeing able to change all the textsizes.

> I'm proposing to add this to official FLTK distribution.

I'm proposing to add empty virtual methods textsize() and textfont() to
Fl_Widget, looks more easy to me, because there is rtti.
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to