PDA

View Full Version : x and ypos of an ext.Messagebox



chrizmaster
23 Jun 2009, 4:52 AM
Hi,

is it possible to set the x and y pos of an Ext.MessageBox? I don't want it to be in the center of the screen.

Regards
Christian

chrizmaster
23 Jun 2009, 5:16 AM
ok, I tried it like this:



var msgbox = Ext.MessageBox.getDialog();
msgbox.setPosition(5,5);
msgbox.show(....);


but what happens is, there's a messagebox shown at the right position, but with all the elements. Means with elemtns for a confirmation box or a promt..

Any suggestions?
Christian

chrizmaster
24 Jun 2009, 10:21 PM
just to let u guys know.

you could do something like this:



var msgbox = Ext.Msg.show({...}).getDialog();
msgbox.setPagePosition(x,y);


mfg
chriz