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

  1. #1

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


    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?

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

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

    Please see the Ready handler.

    <%@ Page Language="C#" %>
    <%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    <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) {
        <form runat="server">
            <ext:ResourceManager runat="server" />
            <ext:Desktop ID="Desktop1" runat="server" BackgroundColor="black">
                    <ext:DesktopModule ModuleID="DesktopModule1" WindowID="DesktopWindow1" AutoRun="true" />
                    <ext:DesktopModule ModuleID="DesktopModule2" WindowID="DesktopWindow2" />
                    <ext:DesktopShortcut ModuleID="DesktopModule2" Text="Show a modal window" />
                        <ext:MenuItem Text="DesktopWindow1">
                                <Click Handler="DesktopWindow1.show();" />
                    <Ready Fn="onReady" />
            <ext:DesktopWindow ID="DesktopWindow1" runat="server" Title="Test"  />
                Modal="true" />
    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