PDA

View Full Version : window motion



petcy
6 Oct 2010, 4:34 AM
is it possible to invoke a window.. with effect ?????


like in the site http://dev.sencha.com/deploy/dev/exa...p/desktop.html (http://dev.sencha.com/deploy/dev/examples/desktop/desktop.html)

how the window comes...
is this a property of the desktop????

ie.on button click i want to invoke a window which should slowly move and settle a defined position....I-|

Condor
6 Oct 2010, 4:36 AM
It already does that if you specify an animTarget in the show parameters.

petcy
6 Oct 2010, 4:38 AM
how??? can u help me with code???

Condor
6 Oct 2010, 5:00 AM
Ext.onReady(function () {
new Ext.Button({
text: 'Click me',
handler: function(btn){
var win = new Ext.Window({
title: 'Hello',
width: 300,
height: 200,
closable: true,
showAnimDuration: 2 // 2 sec is really slow
});
win.show(btn.getEl());
},
renderTo: Ext.getBody()
});
});

petcy
6 Oct 2010, 7:43 PM
thanxxx Condor....

its very nice...