[CLOSED] Focus on Window

  1. #1

    [CLOSED] Focus on Window

    Hi,

    how to focus window when i click window body?
    Last edited by Daniil; Feb 09, 2011 at 1:54 PM. Reason: [CLOSED]
  2. #2
    Hi,

    Not sure what you mean.

    I always think that Window is focused when I click on its body.

    Please provide more details.
  3. #3
    Click image for larger version. 

Name:	desk.jpg 
Views:	74 
Size:	59.4 KB 
ID:	2279

    not show bottom window when click it.
  4. #4
    Hi,

    I guess the top window is configured with Modal="true", isn't that so?
  5. #5
    Quote Originally Posted by Daniil View Post
    Hi,

    I guess the top window is configured with Modal="true", isn't that so?
    No. My window configure as bottom

            var createDynamicWindow = function (app, windowId, pageUrl, pageName, pageHeight, pageWidth) {
                var desk = app.getDesktop();
    
                if (desk.getWindow(windowId)) { desk.getWindow(windowId).show(); return; }
    
                var w = desk.createWindow({
                    id: windowId,
                    title: pageName,
                    width: pageWidth,
                    height: pageHeight,
                    maximizable: true,
                    minimizable: true,
                    layout: 'fit',
                    autoLoad: {
                        url: pageUrl,
                        mode: "iframe",
                        showMask: true
                    }
                });
    
                w.center();
                w.show();
            };
  6. #6
    We've got the problem and investigating.
  7. #7
    The problem that frame events is not bubbled at the top.

    Please add the following 'listeners' section:

    Example
    var w = desk.createWindow({
        ...
        listeners: {
            update: function() {
                var body = this.getBody()
                body.Ext.getBody().on(
                    "click",
                    function() {
                        this.parentAutoLoadControl.toFront();
                    },
                    body)
                }
            }
        });
  8. #8
    Quote Originally Posted by Daniil View Post
    The problem that frame events is not bubbled at the top.

    Please add the following 'listeners' section:

    Example
    var w = desk.createWindow({
        ...
        listeners: {
            update: function() {
                var body = this.getBody()
                body.Ext.getBody().on(
                    "click",
                    function() {
                        this.parentAutoLoadControl.toFront();
                    },
                    body)
                }
            }
        });

    hi daniil,

    yes this is work but if start menu open and i clicked window body not works.
  9. #9
    Could you provide a sample and exact steps to reproduce? I was unable to reproduce this issue.

Similar Threads

  1. [CLOSED] Set focus to TextField once Window is visible
    By digitek in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Jul 13, 2012, 11:45 AM
  2. [CLOSED] How to focus TextField in Window?
    By macap in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Jan 14, 2010, 8:18 AM
  3. ext:window field loosing focus
    By jmilton in forum 1.x Help
    Replies: 2
    Last Post: Aug 04, 2009, 3:06 PM
  4. [CLOSED] Set Focus to textfield in logon window
    By HOWARDJ in forum 1.x Legacy Premium Help
    Replies: 7
    Last Post: May 17, 2009, 9:41 PM
  5. [HELP] Focus on window
    By snippher in forum 1.x Help
    Replies: 0
    Last Post: Mar 23, 2009, 9:17 AM

Posting Permissions