0

[Solved]cancel 'close window', back to ?

asked 2014-10-13 04:20:14 +0800

unitcell gravatar image unitcell
28 4

updated 2014-10-17 12:22:50 +0800

Hi all,

<window title="win" border="normal" width="200px" height="200px" closable="true">
    <attribute name="onClose"><![CDATA[
        if(Messagebox.show("Are you sure to close the window?", "Question",
            Messagebox.OK | Messagebox.CANCEL, Messagebox.QUESTION) != Messagebox.OK){
            event.stopPropagation();
            System.out.println("YES");
        }else
            System.out.println("NO");
    ]]></attribute>
</window>

if click cancel button , how to back window ? mean dont wanna close window.

Thanx.

delete flag offensive retag edit

Comments

Whats your exact requirement?

sjoshi ( 2014-10-13 06:51:41 +0800 )edit

if click cancel button , how to back window ? mean dont wanna quit window.

unitcell ( 2014-10-13 23:47:10 +0800 )edit

let user make sure quit window, if 'yes' close window, if not , do not anything

unitcell ( 2014-10-14 09:46:16 +0800 )edit

2 Answers

Sort by ยป oldest newest most voted
0

answered 2014-10-16 08:26:42 +0800

sentinal gravatar image sentinal
11 2

I think it will help you solve your problem http://forum.zkoss.org/question/93650/stop-close-modal-window/ (Stop close modal window)

link publish delete flag offensive edit
0

answered 2014-10-17 12:22:20 +0800

unitcell gravatar image unitcell
28 4

Thank for all.

http://forum.zkoss.org/question/93650/stop-close-modal-window/ is what I want .

link publish delete flag offensive edit
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow
1 follower

RSS

Stats

Asked: 2014-10-13 04:20:14 +0800

Seen: 25 times

Last updated: Oct 17 '14

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More