fl_set_form_atclose, behavior

Michel Prevost (mprevost@ec.camitel.com)
Mon, 10 Feb 1997 16:27:47 -0500 (EST)

To subscribers of the xforms list from Michel Prevost <mprevost@ec.camitel.com> :

Hi,

I would like to know what is the real behavior of xforms when a form
is posted WM_DELETE_WINDOW by the window manager. I know that we can set
a function to be called when this happens, and make the function return
FL_IGNORE when we don't want the application to terminate.

But what if we also want to tell xforms NOT to delete the window! Here is
an example:

A user made modification on a window. The function called when closing it
(previously set by fl_set_form_atclose) pops up another window to ask the
user if he wants to save the changes. There is 3 buttons in this window:
one labeled "Yes", another labeled "No" and the last one labeled "Cancel".

Obviously, if the user presses the "Cancel" button, that's because he
changed his mind and finally don't want the window to be deleted.

How do we do this, if it is possible at all?

Michel

P.S.: I have v0.80

P.P.S.: If I have to do it with Xlib calls, how do I?
----------------------------------
E-Mail: Michel Prevost <mprevost@ec.camitel.com>
Date: 10-Feb-97
Time: 16:27:47

This message was sent by XF-Mail
----------------------------------
_________________________________________________
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/