1. #1
    Sencha User chrizmaster's Avatar
    Join Date
    Feb 2009
    Location
    Australia
    Posts
    441
    Vote Rating
    1
    chrizmaster is on a distinguished road

      0  

    Default Finding the right window to adjust

    Finding the right window to adjust


    Hi,

    I have a base Window on the right side of my desktop (1). From there I click a button and need to adjust another window next to my base window.

    It could happen that there is more than 1 Window (except the base window, see 1 & 2) is visible the same time (as usual for a desktop clone).
    So I want to adjust the base window with that window, that is on top of the other windows. in this case it's window 2.

    How can I recognize, this on is the window I want to adjust? it's not the one on top, that's the base window. What I need to have is some kind of stack, where I take the 2. element (the 2. Window) and adjust it...

    I hope I could make it more clear with my picture.

    Chrizexample.png

  2. #2
    Sencha - Ext JS Dev Team Animal's Avatar
    Join Date
    Mar 2007
    Location
    Notts/Redwood City
    Posts
    30,502
    Vote Rating
    47
    Animal has a spectacular aura about Animal has a spectacular aura about

      0  

    Default


    I don't understand what you are saying. You are saying you don't know which Window you want to adjust?

  3. #3
    Sencha User tobiu's Avatar
    Join Date
    May 2007
    Location
    Munich (Germany)
    Posts
    2,669
    Vote Rating
    110
    tobiu is a name known to all tobiu is a name known to all tobiu is a name known to all tobiu is a name known to all tobiu is a name known to all tobiu is a name known to all

      0  

    Default


    i don't get the point either, but
    http://www.sencha.com/deploy/dev/doc...=Ext.WindowMgr

    might help for this
    Best regards
    Tobias Uhlig
    __________

    S-CIRCLES Social Network Engine

  4. #4
    Sencha User chrizmaster's Avatar
    Join Date
    Feb 2009
    Location
    Australia
    Posts
    441
    Vote Rating
    1
    chrizmaster is on a distinguished road

      0  

    Default


    imagine you have 3 cards. on on the right, and 2 on the left. you now want to know which of the 2 cards on the left is the one which is on top and which is in the back of the both cards.
    you can't ask for something like isOnTop, because the right card is always on top....

  5. #5
    Sencha - Ext JS Dev Team Animal's Avatar
    Join Date
    Mar 2007
    Location
    Notts/Redwood City
    Posts
    30,502
    Vote Rating
    47
    Animal has a spectacular aura about Animal has a spectacular aura about

      0  

    Default


    So you want to know which is the second from top?

    The WindowMgr can probably provide you the info.

  6. #6
    Sencha - Ext JS Dev Team Animal's Avatar
    Join Date
    Mar 2007
    Location
    Notts/Redwood City
    Posts
    30,502
    Vote Rating
    47
    Animal has a spectacular aura about Animal has a spectacular aura about

      0  

    Default


    Or use one WindowMgr for your "controller" window.

    And one for your other windows. Then ask that other one for the topmost window.

  7. #7
    Sencha User chrizmaster's Avatar
    Join Date
    Feb 2009
    Location
    Australia
    Posts
    441
    Vote Rating
    1
    chrizmaster is on a distinguished road

      0  

    Default


    Yes, i use the windowgroup, but how do I get the
    second from the top. That's the question I can't find an answere for. Maybe because I worked the whole day for another problem and I can't see the solution even if it's simple... ;-)

  8. #8
    Sencha - Ext JS Dev Team Animal's Avatar
    Join Date
    Mar 2007
    Location
    Notts/Redwood City
    Posts
    30,502
    Vote Rating
    47
    Animal has a spectacular aura about Animal has a spectacular aura about

      0  

    Default


    Create those others in a seperate WindowMgr, and just use getActive

  9. #9
    Sencha User chrizmaster's Avatar
    Join Date
    Feb 2009
    Location
    Australia
    Posts
    441
    Vote Rating
    1
    chrizmaster is on a distinguished road

      0  

    Default


    öhm. you mean for every window another windowmgr? isn't the sense of a windowmgr to have a group of windows to manage?

  10. #10
    Sencha - Ext JS Dev Team Animal's Avatar
    Join Date
    Mar 2007
    Location
    Notts/Redwood City
    Posts
    30,502
    Vote Rating
    47
    Animal has a spectacular aura about Animal has a spectacular aura about

      0  

    Default


    No.

    A WindowMgr which manages your "other" Windows.

    it knows which one is its topmost one.

Similar Threads

  1. adjust the window with browser resolution
    By jsuser in forum Ext 2.x: Help & Discussion
    Replies: 4
    Last Post: 12 Aug 2009, 8:25 AM
  2. Ext.Window doesn't adjust to children component size
    By slava in forum Ext 2.x: Help & Discussion
    Replies: 0
    Last Post: 10 Nov 2008, 8:46 AM
  3. Adjust Height of a window
    By artnum in forum Ext 2.x: Help & Discussion
    Replies: 0
    Last Post: 27 Feb 2008, 2:32 AM
  4. Make window adjust to contents
    By Morris in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 13 Nov 2007, 3:23 AM

Thread Participants: 2