[CLOSED] Minimize window created in another desktop window

  1. #1

    [CLOSED] Minimize window created in another desktop window

    I'm using this code to create another window from a desktopwindow:

    function CreateDesktopWindow(title, id) {
                if (top.winWijzigBestuurder) {
                    top.winWijzigBestuurder.destroy();
                }
                var onTop = new Ext.WindowGroup;
                onTop.zseed = 10000;
                var win = new top.window.Ext.Window({
                    id: 'winWijzigBestuurder',
                    title: title,
                    width: 500,
                    height: 520,
                    Icon: "UserEdit",
                    maximizable: false,
                    minimizable: true,
                    constrainHeader: true,
                    manager: onTop,
                    autoLoad: {
                        showMask: true,
                        mode: "iframe",
                        url: "url.aspx"                }
                });
                win.show();
            }
    The window opens like it should. But..

    I would like to minimize this window also to the desktop taskbar. But nothing happens when clicking the '-' button

    How do I accomplish this ?

    Martin
    Last edited by Daniil; Oct 03, 2011 at 2:53 PM. Reason: [CLOSED]
  2. #2
    Hi,

    Please create a new window using the .createWindow() function of a desktop.

    Please see the .createDynamicWindow() function in Desktop.aspx.
    https://examples1.ext.net/#/Desktop/...tion/Overview/
  3. #3
    Quote Originally Posted by Daniil View Post
    Hi,

    Please create a new window using the .createWindow() function of a desktop.

    Please see the .createDynamicWindow() function in Desktop.aspx.
    https://examples1.ext.net/#/Desktop/...tion/Overview/
    Thanks Daniil. That works.

    var CreateDesktopWindow = function(title, id) {
                var desk = top.MyDesktop.getDesktop();
                if (top.winWijzigBestuurder) {
                    top.winWijzigBestuurder.destroy();
                }
                var w = desk.createWindow({
                    id: "winWijzigBestuurder",
                    title: title,
                    width: 500,
                    height: 520,
                    maximizable: false,
                    minimizable: true,
                    constrainHeader: true,
                    Icon: "UserEdit",
                    autoLoad: {
                        showMask: true,
                        mode: "iframe",
                        url: "url.aspx"
                    }
                });
                w.center();
                w.show();
            };

Similar Threads

  1. Replies: 0
    Last Post: Aug 01, 2012, 2:20 AM
  2. Replies: 8
    Last Post: Mar 13, 2012, 6:54 PM
  3. Window is not minimize
    By Mohammad Yakub in forum 1.x Help
    Replies: 3
    Last Post: Feb 10, 2009, 6:41 AM
  4. Replies: 3
    Last Post: Feb 03, 2009, 6:57 PM
  5. Desktop window created
    By Amorim in forum 1.x Help
    Replies: 0
    Last Post: Jan 30, 2009, 2:19 PM

Posting Permissions