PDA

View Full Version : How build a window that looks like an MessageBox?



exebenus
15 Feb 2012, 1:09 AM
Hi,

I wanna create a window that looks like a Ext.MessageBox, but not limited to the options available.

I tried to create one using an panel and buttons inside an Ext.window.Window but its so ugly...

What I want (the look):
31715

What I get:
31716

Thanks in Advance

punith.mailmee
15 Feb 2012, 1:18 AM
Check Ext.window.MessageBox class with config option YesNo.
http://docs.sencha.com/ext-js/4-0/#!/api/Ext.window.MessageBox-property-YESNO
it will give a same look and functionality of what u are expecting

Thanks
Punith

exebenus
15 Feb 2012, 4:45 PM
Hi Punith,

Thanks for your reply, but in my case I dont want YES/NO buttons. I need buttons with my own label.

Is that possible in Ext.window.MessageBox?

mashiki
15 Feb 2012, 6:42 PM
try



var mymsg = Ext.widget('messagebox',{
buttonText : {ok: "OK!!", yes: "Yes!!", no: "No!!", cancel: "Cancel!!"}
});
mymsg.confirm('Select', "Let's go!");

exebenus
16 Feb 2012, 1:19 AM
Hi mashiki,

Thanks! It works fine !!