View Single Post
Old 29th August 2006, 20:42   #15
leechbite
Major Dude
 
leechbite's Avatar
 
Join Date: Sep 2003
Location: Canada
Posts: 635
Send a message via Yahoo to leechbite
hmm, im curious why it wont work cause im pretty sure owner tag still works, multipass uses this on the ColorTheme object on one of its drawer. im not sure but on xml definition the owner layout might need to be defined first before any child layout is defined.

another option is by script that checks of focus on the 2 containers. something like this:

PHP Code:

Global boolean mainFocus falsealphaFocus falselastFocus false;

mainLayout.onGetFocus() {
    
mainFocus true;

    if (!
lastFocus) { // if last focus is neither of the container, refocus both containers.
        
alphaLayout.setFocus();
        
mainLayout.setFocus();
    }

    
lastFocus true;
}

mainLayout.onKillFocus() {
    
mainFocus false;

    if (
alphaLayout.isActive()) lastFocus true; else lastFocus false;
}

alphaLayout.onGetFocus() {
    
alphaFocus true;

    if (!
lastFocus) { // if last focus is neither of the container, refocus both containers.
        
mainLayout.setFocus();
        
alphaLayout.setFocus();
    }

    
lastFocus true;
}

alphaLayout.onKillFocus() {
    
alphaFocus false;

    if (
mainLayout.isActive()) lastFocus true; else lastFocus false;

might be buggy, but you get the idea. i did something similar with kameleon/warp. the downside of this is it will mess up the system right-click menu.
leechbite is offline   Reply With Quote