• Introducing Dark Mode! Switch by clicking on the lightbulb icon next to Search or by clicking on Default style at the bottom left of the page!

Handling closing of windows

Euroboy

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?

TIA

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.

------_=_NextPart_001_01C094EC.20579FA0
Content-Type: text/plain;
charset="iso-8859-1"

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
 

Zoltan_Gyimesi

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.
Zoltán


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