Sep 14, 2012, 8:03 AM
[CLOSED] How to position a window into a desktop on window open
Hello
By default, when opening a window, it open in desktop center, but I need a different behavior, I want to open a window at 0,0 coordinate and open several over window below the first.
I try to use X, and Y properties of the window, but it didnt works:
By default, when opening a window, it open in desktop center, but I need a different behavior, I want to open a window at 0,0 coordinate and open several over window below the first.
I try to use X, and Y properties of the window, but it didnt works:
<%@ 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></title>
</head>
<ext:ResourceManager ID="ResourceManager1" runat="server">
</ext:ResourceManager>
<body>
<form id="form1" runat="server">
<ext:Desktop
ID="MyDesktop"
runat="server">
<DesktopConfig ID="DesktopConfig1" runat="server" Icons="start-button">
</DesktopConfig>
<Modules>
<%-- Backlog window--%>
<ext:DesktopModule ModuleID="Backlog">
<Window>
<ext:Window
ID="wndBacklog"
runat="server"
Width="1280"
Height="320"
Layout="Fit"
Hidden="True"
ExpandOnShow="True"
MinHeight="100"
MinWidth="100"
Maximizable="false"
Resizable="false"
TitleCollapse="true"
Title="Backlog"
TitleAlign="Center"
Collapsible="True"
X="0"
Y="0">
</ext:Window>
</Window>
</ext:DesktopModule>
</Modules>
<StartMenu ID="StartMenu1" Height="300" Title="Start Here" runat="server" HideTools="True">
<MenuItems>
<ext:MenuItem Text="Backlog" Icon="Bell">
<Listeners>
<Click Handler="#{MyDesktop}.getModule('Backlog').createWindow();" />
</Listeners>
</ext:MenuItem>
</MenuItems>
</StartMenu>
<TaskBar ID="TaskBar1" runat="server" TrayWidth="50">
<TrayClock ID="TrayClock1" runat="server" ></TrayClock>
</TaskBar>
</ext:Desktop>
</form>
</body>
</html>
Last edited by Daniil; Sep 14, 2012 at 3:51 PM.
Reason: [CLOSED]