Fabien Costantini <[EMAIL PROTECTED]> writes:
> Some remarks though :
> - The dynamic_cast should not work in all platforms,
> because I believe exceptions are voluntarily disabled to avoid the
> significant overhead in fltk, AFAIR.
> You can use Fl_Widget::type() for pseudo-rtti type checking,
> this should suffice for group detection.
> 
> - You should probably add an optional minimum version parameter
> in your save/restore API so that one can
> detect changes and possibly avoid to restore the layout if a version
> has changed.

Indeed, that would be quite useful, because the function will screw the layout
as soon as some widgets are changed in the app.

btw. I've also put the snippet on my webpage:
http://propirate.net/oracle/archives/2008/10/08/fltk-snippet-save-layout/

So if anyone wants to link or bookmark it, go ahead. ;-)

Cheers
-Richard

_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to