Hi Juan,

welcome to the qooxdoo project!

Juan Matias Granda wrote:
> i want to create personalized message, like alert, warning, info (like
> zenity or dialog in linux).
> so i am using the class qx.ui.window.Window, but i have a problem i
> want to stop de execution when the window message is open() and wait
> for a response.
> 
> example:
> ------------
> 
> var winAlert = new class.winAlert("question?");
> winAlert.open();
> if (winAlert.getResponse()){
>  alert("ok");
> }
> else{
>  alert("cancel");
> }
I guess you are looking for modal windows. Modal windows are blocking 
the the whole application so the user has to execute an action to e.g. 
close the window.

--snip--
// create the window instance
var myWin = new qx.ui.window.Window("First Modal Dialog");
myWin.setLayout(new qx.ui.layout.VBox(10));

// set it "modal"
myWin.setModal(true);

this.getRoot().add(myWin);

// label to show the e.g. the alert message
var alertMessage = "Alert message";
myWin.add(alertMessage);

// "ok" button to close the window
var alertBtn = new qx.ui.form.Button("OK");
btn2.addListener("execute", myWin.close);
myWin.add(alertBtn);
--snip--

I hope this was you're looking for :)

cheers,
   Alex

------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to