Hi folks,

is there any event which would catch closing of a modal window by default "x" in upper right corner?

Currently workaround is to disable default "x" in upper right corner, create a close button, and catching button's buttonPress event.

But what if I don't want to use a button, and use a default window/dialog functionality. Can I somehow catch that action?

Thanks, Tomas

asked 29 Sep '12, 14:02

Tomeo's gravatar image

accept rate: 3%

Hi Tomeo, You can use the posthide event of the dialog. Basically the dialog is never deleted or closed but only hided. I found this when I implemented a wizard style dialog, that after step3 it closed. When I called the dialog again it started from step3! as if it was never deleted.



answered 30 Sep '12, 01:56

Vlisidis%20Akis's gravatar image

Vlisidis Akis
accept rate: 5%

Hi Vlisidis,

thanks for the reply, yes you're right - windows are hiding and not closing. Unfortunately can't find a mentioned POSTHIDE event.

Here is my dialog definition: <dialog title="Chat" width="700" height="600" close="N"> <borderlayout> <cell docking="Center"> <include panelname="chatMessagesPanel"/> </cell> </borderlayout> </dialog>

Thanks, Tomas

(01 Oct '12, 07:21) Tomeo

Its under events tag as usual:

<dialog width="500" height="500">
    <postHide action="run1"/>
(01 Oct '12, 07:26) oskansavli ♦♦
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: 29 Sep '12, 14:02

Seen: 3,316 times

Last updated: 01 Oct '12, 07:29

© Copyright Gerger 2017