> I think the fileselecor enjoys some kind of immunity, while freezing
> all forms around it. Anyway, I'll buy myself a drink the day i can
> remove it using timer_cb.
How about this:
void zap_fselector( int id, void *junk )
{
FD_FSELECTOR *fselector = fl_get_fselector_fdstruct();
fl_trigger_object( fselector->cancel );
}
void fire_selector_cb(FL_OBJECT *ob, long data)
{
int timeout = fl_add_timeout( 5000, zap_fselector, NULL );
const char *file =
fl_show_fselector( "Hello world!", NULL, NULL, NULL );
if ( file )
fl_remove_timeout( timeout );
do_whatever( file );
}
There is also a call fl_hide_fselector() in 0.87 which I haven't used
since I'm not running 0.87 yet due to a couple of showstopper bugs.
Buy the whole place a round (I'll have a nice shot of 18 year old
Macallan, thank you).
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/