Re: Using callback to call other forms

Steve Lamont (spl@szechuan.ucsd.edu)
Thu, 6 Feb 97 14:50:52 PST

To subscribers of the xforms list from spl@szechuan.ucsd.edu (Steve Lamont) :

> I am trying to create an application where a main form contains buttons
> which call up other forms. I have created the main form with a button
> say paddle. Then I created another form paddle. I call paddle from the
> main form using the paddle button on the main form. I am getting errors
> when I try to do this. What is the correct way to accomplish what I am
> trying to do.?

Yes, you can create and invoke new forms from within a form. This is
generally done in some callback functions. Basically, you just call
the form create routine and then do an fl_show_form() to display the
new form. You generally do *not* want to call fl_do_forms() following
the create of the new form... just return from your callback and let
forms do the work.

What errors are you getting? On what system? What OS? What version
of the library?

spl
_________________________________________________
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/xforms-archive/