How to set Desktop Window Start Position to Center of the Screen

  1. #1

    How to set Desktop Window Start Position to Center of the Screen

    I am using the ext desktop control to an aspx page. It contains several desktop modules. For each module i have used desktop window control. In that control's property field 'InitCenter' i have written "true". What i want to do was - while clicking the Launcher, it will display the desktop window into the center of the screen. I thought this field might fix the issue but could not get any changes yet. Can anyone help me regarding this issue?
  2. #2

    The window is centered in the example below.


    <%@ Page Language="C#" %>
    <%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    <html xmlns="">
    <head runat="server">
        <title>Ext.Net Example</title>
        <form runat="server">
            <ext:ResourceManager runat="server" />
            <ext:Desktop ID="Desktop1" runat="server" BackgroundColor="black">
                    <ext:DesktopModule ModuleID="DesktopModule1" WindowID="DesktopWindow1" />
                    <ext:DesktopShortcut ModuleID="DesktopModule1" Text="Shortcut" />
                        <ext:MenuItem Text="DesktopWindow1">
                                <Click Handler=";" />
            <ext:DesktopWindow ID="DesktopWindow1" runat="server" Title="DesktopWindow" />
  3. #3
    Thanks for the nice example. I haven't tried it in this simple way. Actually 'InitCenter' property does not causing such problem, right? I had two properies defined PageX="300" and PageY="50" which might have created the problem, right?

    Thanks once again.
  4. #4
    Sure, PageX and PageY are positioning properties and they breaks centering.
  5. #5

    The ext desktop control is legal ?

    if I want to use a control called "desktop" in my application, would it be legal? It obvious is a mimic of the Microsoft Windows desktop page. Thanks for your help!
  6. #6
    I think the question should be posted on the Licensing forum.

Similar Threads

  1. Replies: 2
    Last Post: Jun 23, 2012, 3:17 PM
  2. Windows always on the center of screen
    By reiben in forum 1.x Help
    Replies: 1
    Last Post: Dec 09, 2010, 12:56 PM
  3. Replies: 5
    Last Post: Apr 07, 2010, 5:17 PM
  4. TabPanel tabs start position
    By aghanem in forum 1.x Help
    Replies: 5
    Last Post: Apr 26, 2009, 6:03 PM
  5. Start Menu Position
    By mono in forum 1.x Help
    Replies: 1
    Last Post: Mar 07, 2009, 12:54 PM

Tags for this Thread

Posting Permissions