Re: XForms: Removing a Goodie by force

Dr. T.C. Zhao (zhao@bragg.phys.uwm.edu)
Mon, 7 Jul 1997 23:12:04 -0500

To subscribers of the xforms list from "Dr. T.C. Zhao" <zhao@bragg.phys.uwm.edu> :

from Tano Fotang <M.Tano@Wirtschaft.FH-Wolfenbuettel.DE> :

>a file selector is displayed and a random filename sent if the user
>doesnt type in a filename within 35 secs ( sig_alrm, setjmp, alarm,...).
>This works fine except that the Goodie wont and cant be made to disappear
>when it gets timed-out, and only a kill from a shell can then shut down then
>program.

You can use fl_get_fselector_fdstruct to get the inards
of the file selector, then use fl_trigger_object(fdstruct->cancel)
to remove the file selector. A simple fl_hide_form(fdstruct->fselect)
might also work, but fl_trigger_object is better.

_________________________________________________
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/