Positioning the window in a form

  1. #1

    Positioning the window in a form

    hi all,
    I have some issues and I am think of how to resolve it. I have a master page and I generated a page from it and I added the coolite window control to it And I set contrain to true and when I viewed the result in a browser, the window was not contrained to the page.
    What I want is to make sure the window shows on the page alone. I want it pinned down and not draggeable at all. and it is only shown on the content page I generate from the master page.

    thanks,
    Standing by

    Besides...

    You guys rock!!! great work. the ease of use is stunning. And sweet controls. THANKS A LOT!
  2. #2

    RE: Positioning the window in a form

    Hi dukefama,

    No... you rock!

    Thanks for the feedback.

    I'm not sure if I 100% understand your requirements, but does the following sample get you closer? I set the Draggable property (and a few others) to false.

    <%@ Page Language="C#" %>
    
    <!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>Non-Draggable Window</title>
    </head>
    <body>
        <form id="form1" runat="server">
        <cool:ScriptManager ID="ScriptManager1" runat="server" />
        
            <cool:Window 
                ID="Window1" 
                runat="server" 
                Title="Hello"
                AutoShow="true" 
                Draggable="false"
                Collapsible="false"
                Closable="false"
                Resizable="false"
                Modal="true" 
                BodyStyle="padding: 6px;"
                Html="World!"
                />
        
    
        </form>
    </body>
    </html>
    Geoffrey McGill
    Founder
  3. #3

    RE: Positioning the window in a form

    Thanks for the response. It worked for a bit until I increased the size of the window then it jumped out of the container again. What I want is that I want it to stay in the content area (see attached image) , contraint does not work either. Looking at the attachment, what ever gets diplayed in the content area is from a page (I am using master pages) and I want it to stay on the page and not on the browser.

    Thanks. I hope this is not too ambiguous
  4. #4

    RE: Positioning the window in a form

    Thank for the screen capture. That gives me a better idea of what you want to do.

    I don't think the Window control is the best solution though. The Window will always float on top of all elements on the Page. The Window can only be constrained by the browser viewport.

    I think you're going to have to use a Panel control. Does the Panel need to appear above everything within the Content Area? Does it need to be centered in the Content Area?
    Geoffrey McGill
    Founder
  5. #5

    RE: Positioning the window in a form

    Nope it does not need to be centered or be above. But I guess I can handle that. Thanks a lot for your time. If I have any more issues I will let you know.

Similar Threads

  1. [CLOSED] Modal window and form tag
    By sbg in forum 2.x Legacy Premium Help
    Replies: 8
    Last Post: Oct 28, 2013, 6:39 AM
  2. [CLOSED] Standard Form Window Instead of Event Edit Window
    By ppqrnd in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Dec 07, 2011, 1:20 AM
  3. [1.0] menu positioning bug
    By PoloTheMonk in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Oct 14, 2010, 12:14 PM
  4. [1.0] Resize window containing form
    By danielg in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Nov 17, 2009, 3:39 AM
  5. Form inside window reset issue
    By sz_146 in forum 1.x Help
    Replies: 0
    Last Post: Feb 03, 2009, 12:50 PM

Posting Permissions