Image error window is moved or resized

4 replies. Last post: November 2, 2010 7:48 AM by Alfred La Garde
Tags :
  • (None)
  • New Discussion
  • New Question
  • New Product Feedback

I have an application using the WebDesktop Manager and a set of custom images in the Window captionbutton and border.  Whenever I move or resize a window a red x appears in the top left hand corner of the desktop.  This only occurs when EnableWebResources is set to ScriptOnly.

I have attached the body code of the aspx page and a sreen capture.

<body  id="body" runat="server" leftmargin="0" topmargin="0" rightmargin="0" bottommargin="0">
    <form id="form1" runat="server">
        <div>
             <ISWebDesktop:WebMenuBar ID="WebMenuBar1" runat="server" IntegratedTo="None" Caption="WebMenuBar1" CommandSize="" HeaderHeight="" NewDockingArea="NotSet" 
                NewDockingRow="0" NewIsFloat="Default" ToolTip="" Width="100%" HandleVisible="No">
            <CommandClientSideEvents OnClick="OnMenuCommands" />
                <SeparatorStyle Font-Size="1px">
                    <BorderSettings>
                        <Left Color="106, 140, 203" Width="1px" />
                    </BorderSettings>
                </SeparatorStyle>
                <BodyStyle BackColor="#F2F2F2" BackColor2="#F2F2F2" GradientType="Vertical" />
                <MenuStyleSettings BackgroundStripColor="233, 238, 238" BackgroundStripColor2=""
                    MenuAnimation="True" MenuDropShadow="True" MenuWindowType="Normal">
                    <ItemStyle>
                        <Normal Font-Names="segoe ui,tahoma" Font-Size="8.25pt">
                        </Normal>
                        <Over BackColor="#FFE7A2" BaseStyle="Normal" BorderColor="#FFBD69" BorderStyle="Solid"
                            BorderWidth="1px">
                        </Over>
                    </ItemStyle>
                    <DisabledItemStyle>
                        <Normal Font-Names="segoe ui,tahoma" Font-Size="8.25pt" ForeColor="Silver">
                        </Normal>
                        <Over BackColor="WhiteSmoke" BaseStyle="Normal" BorderColor="#FFBD69" BorderStyle="Solid"
                            BorderWidth="1px" ForeColor="Gray">
                        </Over>
                    </DisabledItemStyle>
                    <CheckedItemStyle>
                        <Normal BackColor="#FFBD69" BorderColor="#FFAB3F" BorderStyle="Solid" BorderWidth="1px">
                        </Normal>
                        <Over BackColor="#FB8C3C" BorderColor="#FB8C3C" BorderStyle="Solid" BorderWidth="1px">
                        </Over>
                    </CheckedItemStyle>
                    <FrameStyle BackColor="White" BorderColor="#6593CF" BorderStyle="Solid" BorderWidth="1px">
                    </FrameStyle>
                    <SeparatorStyle>
                        <BorderSettings>
                            <Top Color="154, 198, 255" Width="1px" />
                        </BorderSettings>
                    </SeparatorStyle>
                </MenuStyleSettings>
                <CommandStyle>
                    <Normal Font-Names="Segoe UI,Tahoma" Font-Size="8pt" Overflow="Hidden" OverflowX="Hidden"
                        OverflowY="Hidden">
                        <Padding Bottom="1px" Left="6px" Right="6px" Top="1px" />
                    </Normal>
                    <Over BackColor="#FFF4C7" BackColor2="255, 215, 157" BorderColor="#FFBD69" BorderStyle="Solid"
                        BorderWidth="1px" Cursor="Default" Font-Names="Segoe UI,Tahoma" Font-Size="8pt"
                        GradientType="Vertical" Overflow="Hidden" OverflowX="Hidden" OverflowY="Hidden">
                        <Padding Bottom="0px" Left="5px" Right="5px" Top="0px" />
                    </Over>
                    <Active BackColor="White" BackColor2="144, 185, 238" BaseStyle="Over" BorderColor="#6593CF"
                        Overflow="Hidden" OverflowX="Hidden" OverflowY="Hidden">
                    </Active>
                </CommandStyle>
                <CommandDisabledStyle Font-Names="Segoe UI,Tahoma" Font-Size="8pt" ForeColor="DimGray">
                    <Padding Bottom="1px" Left="3px" Right="3px" Top="1px" />
                </CommandDisabledStyle>
                <HandleStyle ForeColor="Transparent" BackColor="#BFDBFF" />
                <OptionStyle BackColor="#C4C4AD" />
                <HeaderButtonStyle>
                    <Normal BackColor="#2A66C9" Cursor="Hand" Font-Size="8pt" ForeColor="White" Width="13px">
                        <Padding Bottom="1px" Left="1px" Right="1px" Top="1px" />
                    </Normal>
                    <Over BackColor="#FFF2C8" BaseStyle="Normal" BorderColor="#316AC5" BorderStyle="Solid"
                        BorderWidth="1px" Cursor="Hand" ForeColor="Black">
                        <Padding Bottom="0px" Left="0px" Right="0px" Top="0px" />
                    </Over>
                    <Active BackColor="#FE9855" BaseStyle="Over" BorderColor="#4B4B6F" Cursor="Hand">
                    </Active>
                </HeaderButtonStyle>
                <HeaderCaptionStyle BackColor="#2A66C9" Cursor="Move" Font-Bold="True" Font-Names="Tahoma"
                    Font-Size="8pt" ForeColor="White">
                </HeaderCaptionStyle>
            </ISWebDesktop:WebMenuBar>
        </div>
        <ISWebDesktop:WebDesktopManager ID="WebDesktopManager1" runat="server" ActiveWindowIndex="0"
            Height="97%" Width="100%" WindowInteractiveMode="Shadow" 
            EnableWebResources="ScriptOnly" ImagesDirectory="~/images/" 
            TaskBarVisible="False" ShadowModeTransparency="True">
            <WindowSettings BorderType="ComplexImages" CaptionButtonSpacing="2" CommandButtonBorderType="ComplexImages"
                   WindowOptionsPosition="Right" ControlBox="No" EnableFastWindowActivation="True">
                   <CommandButtonStyle>
                       <Active BaseStyle="Normal">
                       </Active>
                       <Over BaseStyle="Normal">
                       </Over>
                       <Normal BorderStyle="None" Font-Names="segoe ui, tahoma" Font-Size="9pt" ForeColor="Black">
                       </Normal>
                   </CommandButtonStyle>
                   <ContainerStyle BackColor="White" Font-Names="segoe ui, tahoma" Font-Size="9pt" Height="100%"
                       Overflow="Auto" OverflowX="Auto" OverflowY="Auto" Width="100%">
                       <Padding Bottom="0px" Left="0px" Right="0px" Top="0px" />
                   </ContainerStyle>
                   <WindowStyle>
                       <Active BaseStyle="Normal" BorderColor="#8e8e8e" BackColor="#e8e8e8">
                           <BorderSettings>
                               <Top Width="0px" Color="176, 207, 247" />
                           </BorderSettings>
                       </Active>
                       <Normal BackColor="White" BorderColor="LightGray" BorderStyle="Solid" BorderWidth="1px"
                           Font-Names="segoe ui, tahoma" Font-Size="9pt" Overflow="Auto" OverflowX="Auto"
                           OverflowY="Auto" Height="100%">
                           <BorderSettings>
                              <Top Width="0px" Color="LightGray" />
                           </BorderSettings>
                       </Normal>
                   </WindowStyle>
                   <CaptionStyle>
                       <Active BaseStyle="Normal" ForeColor="Black">
                       </Active>
                       <Normal Cursor="Default" Font-Names="segoe ui,tahoma" Font-Size="10pt" ForeColor="Gray"
                           Height="23px">
                           <Padding Bottom="0px" Left="2px" Right="2px" Top="3px" />
                       </Normal>
                   </CaptionStyle>
                   <CommandButtonDisabledStyle BackColor="Control" BorderColor="ControlDarkDark" BorderStyle="Solid"
                       BorderWidth="1px" Font-Names="Tahoma" Font-Size="8pt" ForeColor="Gray">
                   </CommandButtonDisabledStyle>
               </WindowSettings>
            <ShortcutStyle>
                <Active BaseStyle="Normal" BackColor="#999999" ForeColor="White"></Active>
                <Normal Cursor="Default" Font-Names="Tahoma" Font-Size="8pt"></Normal>
            </ShortcutStyle>
            <Windows>
                <ISWebDesktop:WebDesktopWindow AllowClose="Yes" AllowMaximize="No" AllowMinimize="No"
                    AllowResize="No" ContentMode="UseIFrame" ContentURL="PersonalStatsWE.aspx"
                    Name="PersonalWindow"  Text="Personal Statistics" Size="400, 200">
                </ISWebDesktop:WebDesktopWindow>
                <ISWebDesktop:WebDesktopWindow Name="Dashboard" ContentMode="UseIFrame" ContentURL=""
                   Text="Dashboard" WindowState="Maximized">
                </ISWebDesktop:WebDesktopWindow>
            </Windows> 
            <ImagesSettings CaptionCenterActive="O7/ras_center_active.gif" CaptionCenterInactive="O7/ras_center_inactive.gif"
                   CaptionLeftActive="O7/ras_left_active.gif" CaptionLeftInactive="O7/ras_left_inactive.gif"
                   CaptionRightActive="O7/ras_right_active.gif" CaptionRightInactive="O7/ras_right_inactive.gif"
                   CloseActive="O7/201-ActiveCancel2.gif" CloseDown="O7/201-ActiveCancel.gif" CloseInactive="O7/201-cancel.gif"
                   CloseOver="O7/201-ActiveCancel.gif" MaximizeActive="O7/203-Add.gif" MaximizeDown="O7/203-ActiveAdd.gif"
                   MaximizeInactive="O7/203-Add.gif" MaximizeOver="O7/203-ActiveAdd.gif" MinimizeActive="O7/202-minus.gif"
                   MinimizeDown="O7/202-ActiveMinus.gif" MinimizeInactive="O7/202-minus.gif" MinimizeOver="O7/202-ActiveMinus.gif"
                   RestoreActive="O7/404-up_down.gif" RestoreDown="O7/404-ActiveUp_down.gif" RestoreInactive="O7/404-up_down.gif"
                   RestoreOver="O7/404-ActiveUp_down.gif"/>            
        </ISWebDesktop:WebDesktopManager>
    </form>
    <script language="javascript">
        function LoadPage() {
        
            // Setup the personal stats shortcut
            var dm = ISGetDesktopManager();
            var shortcut1 = new WebDesktopShortcut();
            shortcut1.Name = "scPersonal";
            shortcut1.Text = "Personal Statistics";
            shortcut1.Image = "./Images/CustomersFolder.png"; //"./Images/287-user_agent.png";
            shortcut1.ToolTip = "Display personal statistics Screen.";
            shortcut1.WindowName = "PersonalWindow";
            dm.ShortcutIcons.Add(shortcut1);

            try {
                var db_id = document.all["sc0db_id"].value;

                if (db_id == "none" || db_id == "" || db_id == null) {
                    return true;
                }
                else {
                    // Setup the dashboard window
                    var shortcut2 = new WebDesktopShortcut();
                    var wnd = dm.GetWindow("Dashboard");
                    wnd.ContentURL = document.all["sc0url"].value;
                    wnd.ContentMode = "UseIFrame";
                    wnd.SetCaption("Quick Dashboard");
                    // Setup the dashboard shortcut
                    shortcut2.Name = document.all["sc0name"].value;
                    shortcut2.Text = document.all["sc0txt"].value;
                    shortcut2.Image = document.all["sc0img"].value;
                    shortcut2.ToolTip = "Display quick dashboard.";
                    shortcut2.WindowName = document.all["sc0winname"].value;
                    dm.ShortcutIcons.Add(shortcut2);
                }
            }
            catch (err) {
                return true;
            }
            var wnd0 = dm.GetWindow("PersonalWindow");
            wnd0.Show();
            return true;
        }
        LoadPage();
    </script>
</body> 
1 attachment
All times are GMT -5. The time now is 10:26 PM.
Previous Next