[CLOSED] window cannot be resized

  1. #1

    [CLOSED] window cannot be resized

    I am trying to create and resize a window on page_load without any success. What I want is to be able to create and change window size on callback.
    What Am I doing wrong?

    <%@ Page Language="VB" %>
    
    <!DOCTYPE html>
    
    <script runat="server">
    
        Dim _win As Ext.Net.Window
        Protected Sub Page_Load(sender As Object, e As EventArgs)
            _win = New Ext.Net.Window
            _win.ID = "w1"
            _win.Title = "Window 1"
            _win.Height = Unit.Pixel(t1.Value)
            _win.Width = Unit.Pixel(t2.Value)
            ' _win.SetSize(t1.Text, t2.Text)
            Me.Controls.Add(_win)
            _win.Center()
            _win.Hidden = True
        End Sub
        
        Protected Sub BtnClick(sender As Object, e As DirectEventArgs)
            _win.Show()
        End Sub
    
    
    </script>
    
    <script type="text/javascript">
     
    </script>
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
        <title></title>
    </head>
    <body>
        <form id="form1" runat="server"> 
             <extnet:ResourceManager ID="resourceManager" runat="server" />
            <extnet:formPanel runat="server" Layout="FormLayout">
                <Items>
                    <extnet:NumberField runat="server" ID="t1" Text="200"  AllowDecimals="False" AllowBlank="False" AllowExponential="False" MinValue="1" MaxValue="1000"  FieldLabel="Height"/>
                    <extnet:NumberField runat="server" ID="t2" Text="200" AllowDecimals="False" AllowBlank="False" AllowExponential="False" MinValue="1" MaxValue="1000" FieldLabel="Width"/>
                </Items>
                <Buttons>
                    <extnet:Button runat="server" text="Window show" >
                        <DirectEvents>
                            <Click OnEvent="BtnClick"  />
                        </DirectEvents>
                    </extnet:Button>
                </Buttons>
            </extnet:formPanel>
       </form>
    </body>
    </html>
    Last edited by Daniil; May 19, 2015 at 10:32 PM. Reason: [CLOSED]
  2. #2
    Hi @jstifel,

    Please use a Window's Maximized property.
    http://docs.sencha.com/extjs/4.2.1/#...-cfg-maximized

Similar Threads

  1. Replies: 2
    Last Post: Oct 18, 2013, 2:25 PM
  2. Replies: 4
    Last Post: Feb 22, 2012, 4:12 PM
  3. Replies: 3
    Last Post: May 03, 2011, 2:20 PM
  4. [FIXED] [V0.8] Icons getting resized
    By dbassett74 in forum Bugs
    Replies: 1
    Last Post: Apr 22, 2009, 1:19 PM
  5. Replies: 6
    Last Post: Jun 19, 2008, 5:17 PM

Tags for this Thread

Posting Permissions