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

Reply via email to