Results 1 to 5 of 5

Thread: window motion

  1. #1
    Sencha User petcy's Avatar
    Join Date
    Aug 2010
    Location
    India
    Posts
    137
    Vote Rating
    0
      0  

    Default window motion

    is it possible to invoke a window.. with effect ?????


    like in the site http://dev.sencha.com/deploy/dev/exa...p/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....

  2. #2
    Sencha - Community Support Team Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,246
    Vote Rating
    119
      0  

    Default

    It already does that if you specify an animTarget in the show parameters.

  3. #3
    Sencha User petcy's Avatar
    Join Date
    Aug 2010
    Location
    India
    Posts
    137
    Vote Rating
    0
      0  

    Default

    how??? can u help me with code???

  4. #4
    Sencha - Community Support Team Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,246
    Vote Rating
    119
      0  

    Default

    Code:
    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()
        });
    });

  5. #5
    Sencha User petcy's Avatar
    Join Date
    Aug 2010
    Location
    India
    Posts
    137
    Vote Rating
    0
      0  

    Default

    thanxxx Condor....

    its very nice...

Similar Threads

  1. Window hide then close vs window close... Problems re-opening the window.
    By zhegwood in forum Ext 3.x: Help & Discussion
    Replies: 7
    Last Post: 11 Jan 2010, 5:42 PM
  2. [FIXED] Window.setAutoHide() closes window on window moving
    By sorrro in forum Ext GWT: Bugs (2.x)
    Replies: 1
    Last Post: 6 Oct 2009, 6:50 AM
  3. Replies: 4
    Last Post: 3 Jul 2009, 6:04 AM
  4. Replies: 5
    Last Post: 23 Jul 2008, 8:49 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •