Re: XForms: Window Managers close button

AMIT BHATNAGAR (amit@cs.dal.ca)
Mon, 19 Oct 1998 11:14:00 -0300 (ADT)

# To subscribers of the xforms list from AMIT BHATNAGAR <amit@cs.dal.ca> :

On Mon, 19 Oct 1998, ian wrote:

> # To subscribers of the xforms list from ian <ian@eonsw.demon.co.uk> :
>
>
> What is the correct way to handle this situaltion?
>
> I have a form. The form opens another form (for a password as it happens). If
> the close button on the window managers title bar is clicked (on the password
> form) the whole application dies.
>
> What I need to do is to trap the event (whatever it is) and close just the form.
>
> TIA.

when you say close button, do you mean a button that you created to close
the form, OR the X button on the Xwindow that closes the window?

I suggest that you creater a button on the password form called close or
submit or whatever, and have its callback fl_hide_form (obj->form);
fl_free_form (obj->form)... and thats all there is to it.

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