[CLOSED] Desktop modal window doesn't cover taskbar or StartMenu

  1. #1

    [CLOSED] Desktop modal window doesn't cover taskbar or StartMenu

    Hi

    I am using EXT.NET 1.2

    I notice that when I open a modal window inside a Desktop neither the taskbar nor the Start Button are covered by the mask.

    Because of that it is possible to bypass modal access restriction to other windows that may be opened in desktop.

    Am I missing something?

    Thanks
    Regards
    Fernando
    Last edited by Daniil; Nov 29, 2011 at 6:11 AM. Reason: [CLOSED]
  2. #2
    Hi,

    To achieve the requirement you should render a window into a body.

    Please see the Ready handler.

    Example
    <%@ Page Language="C#" %>
    
    <%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
    
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
        <title>Ext.Net Example</title>
    
        <script type="text/javascript">
            var onReady = function (app) {
                var dt = app.getDesktop();
                dt.tuneDesktopWindow = dt.tuneDesktopWindow.createInterceptor(function (win) {
                    if (!win.rendered) {
                        win.render(Ext.getBody());
                    }
                });
            };
        </script>
    </head>
    <body>
        <form runat="server">
            <ext:ResourceManager runat="server" />
            <ext:Desktop ID="Desktop1" runat="server" BackgroundColor="black">
                <Modules>
                    <ext:DesktopModule ModuleID="DesktopModule1" WindowID="DesktopWindow1" AutoRun="true" />
                    <ext:DesktopModule ModuleID="DesktopModule2" WindowID="DesktopWindow2" />
                </Modules>
                <Shortcuts>
                    <ext:DesktopShortcut ModuleID="DesktopModule2" Text="Show a modal window" />
                </Shortcuts>
                <StartMenu>
                    <Items>
                        <ext:MenuItem Text="DesktopWindow1">
                            <Listeners>
                                <Click Handler="DesktopWindow1.show();" />
                            </Listeners>
                        </ext:MenuItem>
                    </Items>
                </StartMenu>
                <Listeners>
                    <Ready Fn="onReady" />
                </Listeners>
            </ext:Desktop>
            <ext:DesktopWindow ID="DesktopWindow1" runat="server" Title="Test"  />
            <ext:DesktopWindow 
                ID="DesktopWindow2" 
                runat="server" 
                Title="Modal" 
                Modal="true" />
        </form>
    </body>
    </html>
    Please note that this solution requires a DesktopWindow's LazyRender to be not set up to false.

Similar Threads

  1. Replies: 3
    Last Post: Apr 15, 2011, 8:12 AM
  2. [CLOSED] Preventing a Desktop Window from being shown in the taskbar
    By r_honey in forum 1.x Legacy Premium Help
    Replies: 6
    Last Post: Jan 04, 2011, 7:46 PM
  3. Replies: 8
    Last Post: Jun 23, 2010, 10:16 AM
  4. Replies: 0
    Last Post: Jan 23, 2010, 4:15 PM
  5. [FIXED] [V0.8.0] modal window in desktop
    By [WP]joju in forum Bugs
    Replies: 2
    Last Post: Feb 02, 2009, 1:23 AM

Tags for this Thread

Posting Permissions