XForms: More control of tabbed folders

Mike Blackwell (mkb@cs.cmu.edu)
Wed, 08 Apr 1998 10:50:53 -0400

# To subscribers of the xforms list from Mike Blackwell <mkb@cs.cmu.edu> :

I'm using (abusing) tabbed folders in 0.88.1, and I have a
couple of questions on how they work...

First, I need some sort of notification (like a callback)
when folders are switched, *before* the current folder
disappears. I have GL canvases on some folders, and I
need to clean up and save some state before the GL context
disappears.

The current folder callback mechanism seems to be called either
just before or just after the new folder is shown - which is
it? Also, the callback doesn't seem to be called if I do a
fl_set_folder(). It seems that the callback is attached to
clicking a (not currently active) folder tab, not to the function
of actually showing a folder - is this correct?

I really don't understand the distinction between fl_get_folder()
and fl_get_active_folder().

I find that the "feature" of objects without callbacks not causing
fl_do_forms() to return to be a big nuisance and causes extra
programming work. What's the rationale for this behavior?

Finally, if I wanted to implement functionallity similar to tabbed
folders (i.e. get all of the objects in one form and add them to
another), how would I go about doing that?

Mike Blackwell

mkb@cs.cmu.edu
_________________________________________________
To unsubscribe, send the message "unsubscribe" to
xforms-request@bob.usuf2.usuhs.mil or see
http://bob.usuf2.usuhs.mil/mailserv/xforms.html
XForms Home Page: http://bragg.phys.uwm.edu/xforms
List Archive: http://bob.usuf2.usuhs.mil/mailserv/list-archives/