Re: [qooxdoo-devel] How to create a real modal window?

2012-06-01 Thread sts.wbs
Ok, I found the Dialog contribution. 

Many thanks,
sts


--
View this message in context: 
http://qooxdoo.678.n2.nabble.com/How-to-create-a-real-modal-window-tp7580188p7580236.html
Sent from the qooxdoo mailing list archive at Nabble.com.

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel


Re: [qooxdoo-devel] How to create a real modal window?

2012-06-01 Thread Daniel Wagner
Hi,

qooxdoo-contrib is hosted on SourceForge:

https://qooxdoo.svn.sourceforge.net/svnroot/qooxdoo-contrib/trunk/qooxdoo-contrib/Dialog/

Regards,
Daniel

On 06/01/2012 03:16 PM, sts.wbs wrote:
> I tried to find the Dialog contribution. I can't find it. Where exactly can I
> find it? I'm using qooxdoo-1.6-sdk.
>
> - - -
>
> By the way, here is a sample how my MessageBox usage now looks like. In this
> sample the call jumps from one function to the other. (_test ->  _test1 ->
> _test2 ->  nowhere)
> The function showMessage can take several params, at least type and text is
> needed, all others are optional:
> showMessage : function(type, text, caption, handler, scope, data, buttons,
> defButton, symbol, icon)
> The "handler" is the callback function, used with the "scope" (significant
> by cascading calls).
> "Data" is aditional (optional) data passing to the callback.
> The other params are for customization, like "Ignore, Retry, Abort,
> YesToAll, ...".
> In the callback, "result" is the code of the pressed button and "data" is
> the passed data.
> It works well.
>
> - - -
>
> _test : function(e)  // called by a button
> {
>myApp.MessageBox.showMessage(myApp.MessageBox.mtError, "This is not an
> error! :-)", null, this._test1, this);
>// no more code here! - continues at _test1...
> },
>
> _test1 : function(result, data)  // first callback
> {
>myApp.MessageBox.showMessage(myApp.MessageBox.mtConfirmation, "Please
> choose...", null, this._test2, this);
>// no more code here! - continues at _test2...
> },
>
> _test2 : function(result, data)  // second callback
> {
>if(result == myApp.MessageBox.mbYes)
>{
>  myApp.MessageBox.showMessage(myApp.MessageBox.mtInformation, "You hit
> 'Yes'.", "!!! Yes !!!");
>}
>else
>{
>  myApp.MessageBox.showMessage(myApp.MessageBox.mtWarning, "You hit
> 'No'.", "!!! No !!!");
>}
> },
>
>
> --
> View this message in context: 
> http://qooxdoo.678.n2.nabble.com/How-to-create-a-real-modal-window-tp7580188p7580232.html
> Sent from the qooxdoo mailing list archive at Nabble.com.
>
> --
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> ___
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
>

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel


Re: [qooxdoo-devel] How to create a real modal window?

2012-06-01 Thread thron7


On 06/01/2012 03:16 PM, sts.wbs wrote:
> I tried to find the Dialog contribution. I can't find it. Where exactly can I
> find it? I'm using qooxdoo-1.6-sdk.

http://qooxdoo.org/contrib/project#dialog


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel


Re: [qooxdoo-devel] How to create a real modal window?

2012-06-01 Thread sts.wbs
I tried to find the Dialog contribution. I can't find it. Where exactly can I
find it? I'm using qooxdoo-1.6-sdk.

- - -

By the way, here is a sample how my MessageBox usage now looks like. In this
sample the call jumps from one function to the other. (_test -> _test1 ->
_test2 -> nowhere)
The function showMessage can take several params, at least type and text is
needed, all others are optional:
showMessage : function(type, text, caption, handler, scope, data, buttons,
defButton, symbol, icon)
The "handler" is the callback function, used with the "scope" (significant
by cascading calls).
"Data" is aditional (optional) data passing to the callback.
The other params are for customization, like "Ignore, Retry, Abort,
YesToAll, ...".
In the callback, "result" is the code of the pressed button and "data" is
the passed data.
It works well.

- - -

_test : function(e)  // called by a button
{
  myApp.MessageBox.showMessage(myApp.MessageBox.mtError, "This is not an
error! :-)", null, this._test1, this);
  // no more code here! - continues at _test1...
},

_test1 : function(result, data)  // first callback
{
  myApp.MessageBox.showMessage(myApp.MessageBox.mtConfirmation, "Please
choose...", null, this._test2, this);
  // no more code here! - continues at _test2...
},

_test2 : function(result, data)  // second callback
{
  if(result == myApp.MessageBox.mbYes)
  {
myApp.MessageBox.showMessage(myApp.MessageBox.mtInformation, "You hit
'Yes'.", "!!! Yes !!!");
  }
  else
  {
myApp.MessageBox.showMessage(myApp.MessageBox.mtWarning, "You hit
'No'.", "!!! No !!!");
  }
},


--
View this message in context: 
http://qooxdoo.678.n2.nabble.com/How-to-create-a-real-modal-window-tp7580188p7580232.html
Sent from the qooxdoo mailing list archive at Nabble.com.

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel


Re: [qooxdoo-devel] How to create a real modal window?

2012-05-31 Thread Fritz Zaucker
On Thu, 31 May 2012, sts.wbs wrote:

> I'm writing a "MessageBox" dialog for showing
> information/warning/error/confirmation. We all know them from Windows. The
> JavaScript alert/confirm box is deprecated and not very pretty and I
> didn't find a replacement in qooxdoo. My MessageBox is complete, but just
> doesn't wait until the answer of the user.

Did you look at the Dialog contribution for Qooxdoo? It won't solve your
problem, though.

> I understand meanwhile that my demand may not possible and the solution
> would be to have no more instructions after opening the MessageBox and
> continue work with a callback funktion telling me by parameter which
> button was pressed. It's a little bit inconvenient, but it seems that
> there is no other way. Elsewise, let me know!

You could also register separate callback functions for each button. Apart
from that, I think this is the way to go.

Cheers,
Fritz

-- 
Oetiker+Partner AG  tel: +41 62 775 9903 (direct)
Fritz Zaucker+41 62 775 9900 (switch board)
Aarweg 15+41 79 675 0630 (mobile)
CH-4600 Olten   fax: +41 62 775 9905
Schweiz web: www.oetiker.ch

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel


Re: [qooxdoo-devel] How to create a real modal window?

2012-05-31 Thread sts.wbs
I'm writing a "MessageBox" dialog for showing
information/warning/error/confirmation. We all know them from Windows. The
JavaScript alert/confirm box is deprecated and not very pretty and I didn't
find a replacement in qooxdoo. My MessageBox is complete, but just doesn't
wait until the answer of the user.

I understand meanwhile that my demand may not possible and the solution
would be to have no more instructions after opening the MessageBox and
continue work with a callback funktion telling me by parameter which button
was pressed. It's a little bit inconvenient, but it seems that there is no
other way. Elsewise, let me know!

Thanks for help,
sts


--
View this message in context: 
http://qooxdoo.678.n2.nabble.com/How-to-create-a-real-modal-window-tp7580188p7580205.html
Sent from the qooxdoo mailing list archive at Nabble.com.

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel


Re: [qooxdoo-devel] How to create a real modal window?

2012-05-31 Thread Fritz Zaucker
The alert box is a browser or probably more exactly a JavaScript "control",
as far as I understand.

It is deprecated, I guess, because it conflicts with the event driven
programming model of GUI applications.

The modal window tries to force the user to some interaction, but it doesn't
care about the application flow per se. If you don't want your program to
continue after instructing the browser to open the window, you should not
have any instruction following the open call, but rather use an event
listener to do whatever you want to do when the user presses whatever button
you modal window supplies.

Having a busy look is certainly not a good idea ...

Perhaps you can tell a bit more in detail what you want to achieve and then
can get some more concrete answers.

Cheers,
Fritz

On Thu, 31 May 2012, sts.wbs wrote:

> I mean a behavior like the deprecated alert box has.
> It shows a box and waits for a press on an button to close the box and
> continue operation.
>
> Maybe I could wait within a loop, but then I need a function to keep the
> browser alive.
>
> How does the alert box work inside?
>
> Thanks,
> sts
>
>
> --
> View this message in context: 
> http://qooxdoo.678.n2.nabble.com/How-to-create-a-real-modal-window-tp7580188p7580197.html
> Sent from the qooxdoo mailing list archive at Nabble.com.
>
> --
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> ___
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
>

-- 
Oetiker+Partner AG  tel: +41 62 775 9903 (direct)
Fritz Zaucker+41 62 775 9900 (switch board)
Aarweg 15+41 79 675 0630 (mobile)
CH-4600 Olten   fax: +41 62 775 9905
Schweiz web: www.oetiker.ch

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel


Re: [qooxdoo-devel] How to create a real modal window?

2012-05-31 Thread sts.wbs
I mean a behavior like the deprecated alert box has.
It shows a box and waits for a press on an button to close the box and
continue operation.

Maybe I could wait within a loop, but then I need a function to keep the
browser alive.

How does the alert box work inside?

Thanks,
sts


--
View this message in context: 
http://qooxdoo.678.n2.nabble.com/How-to-create-a-real-modal-window-tp7580188p7580197.html
Sent from the qooxdoo mailing list archive at Nabble.com.

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel


Re: [qooxdoo-devel] How to create a real modal window?

2012-05-31 Thread Christopher Zündorf
You could install a listener on a event of the window.

Maybe appear , beforeClose ?

Greetz Christopher


Am 31.05.2012 um 10:45 schrieb Mailinglist:


  Hello!

Does anyone know how to create a REAL modal window/dialog?

I'm extending qx.ui.window.Window and call:
myDialog.setModal(true);
myDialog.open();

The dialog comes up and the blocker prevents further
access to the rest of the application,
BUT THE PROCESSING DOESN'T STOP at the "open" call!

It's not real modal!

I want to continue the processing after myDialog.open()
not until I pressed a button on the dialog (with closing the dialog).

How can I force my dialog to wait at the "open" call?

Thanks,
sts



--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Christopher Zündorf
Junior-Software-Developer

1&1 Internet AG - Frameworks & Tooling
Ernst-Frey-Straße 9 · DE-76135 Karlsruhe
Telefon:  +49 721 91374-6932
[email protected]

Amtsgericht Montabaur / HRB 6484
Vorstände: Henning Ahlert, Ralph Dommermuth, Matthias Ehrlich, Robert Hoffmann, 
Andreas Hofmann, Markus Huhn, Hans-Henning Kettler, Dr. Oliver Mauss, Jan Oetjen
Aufsichtsratsvorsitzender: Michael Scheeren





--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel


[qooxdoo-devel] How to create a real modal window?

2012-05-31 Thread Mailinglist

   Hello!

Does anyone know how to create a REAL modal window/dialog?

I'm extending qx.ui.window.Window and call:
myDialog.setModal(true);
myDialog.open();

The dialog comes up and the blocker prevents further
access to the rest of the application,
BUT THE PROCESSING DOESN'T STOP at the "open" call!

It's not real modal!

I want to continue the processing after myDialog.open()
not until I pressed a button on the dialog (with closing the dialog).

How can I force my dialog to wait at the "open" call?

Thanks,
sts



--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel