Handling closing of windows


Active Member
Hello All

Within a window you have the 3 std windows buttons of maximise, minimise and closedown (the X button). Does anyone know how one can add logic to a function if the user presses the closedown icon? What user point within the event rules can handle this?


OneWorld B733 SP11.3 using Oracle Database
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

Content-Type: text/plain;

Hi Euro,

You can add logic to "End Dialog" event of the Form where you want to do
some processing when the window/form is closing down.

Best Regards

Chandra S. Nath
(Systems Engineer)
AristaSoft Corporation
Tel: +91 (40) 311-9800x5811 (Work)
+91 98490-31826 (Mobile)
Fax: +91 (40) 311-9801
> "Excellence is not a single act, its a daily habit." - Aristotle


Legendary Poster
Hi Euroboy,
You can capture one of the mentioned three standard Windows button, namely the CloseWindow (CloseDown) button.
Pressing the CloseDown will trigger the Close/Cancel (depends on the type of Form) OneWorld Form exit, so all Event Rule logic attached to the events of Close/Cancel will be executed.
I have noticed a strange thing:
I can disable Close/Cancel form exit using system function in ER logic or changing its attribute on the Exit Properties sheet.
That is right and works: the Close/Cancel will grayed-out on the toolbar and in the File menu of the OneWorld Form but I still we able to press and execute the CloseDown standard Windows button.
Keep in mind this strange behavior when you will attach logic to Close/Cancel.
Hope, could help a bit.

B7332 SP11, ESU 4116422, Intel NT4, SQL 7 SP1
(working with B7321, B7331, XE too)