Ta da! LyX users need just plug and play for this to work; the necessary
changes to the LyX source are already in that repository.
For the rest, this enables tabfolders to resize their contents correctly when
the parent dialog's size is changed. Nested tabfolders work correctly too.
In order for this to work you must have code like this in your app:
#if FL_VERSION == 0 || (FL_REVISION == 0 && FL_FIXLEVEL < 2)
#else
fl_set_tabfolder_autofit(dialog_->tabfolder, FL_FIT);
#endif
// Stack tabs
fl_addto_tabfolder(dialog_->tabfolder, _("Version"), version_->form);
fl_addto_tabfolder(dialog_->tabfolder, _("Credits"), credits_->form);
fl_addto_tabfolder(dialog_->tabfolder, _("License"), license_->form);
The magic 'fl_set_tabfolder_autofit' is new to me although it is documented in
the on-line manual to be found at
http://www.geocities.com/dan_aceja/xforms.html
I guess that you don't need the preprocessor lines but if you call this
function whilst using an older version of xforms, weird stuff will happen.
(The tabfolder will scale its contents, but only when you change tabs...)
As ever, please feel free to review/comment.
Good night,
Angus
_________________________________________________
To unsubscribe, send the message "unsubscribe" to
xforms-request@bob.usuhs.mil or see
http://bob.usuhs.mil/mailserv/xforms.html
XForms Home Page: http://world.std.com/~xforms
List Archive: http://bob.usuhs.mil/mailserv/list-archives/
Development: http://savannah.nongnu.org/files/?group=xforms
This archive was generated by hypermail 2b29 : Wed Apr 09 2003 - 18:03:00 EDT