PDA

View Full Version : Positioning the window in a form



dukefama
Mar 31, 2008, 1:20 PM
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!

geoffrey.mcgill
Mar 31, 2008, 3:54 PM
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>

dukefama
Mar 31, 2008, 7:22 PM
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

geoffrey.mcgill
Mar 31, 2008, 8:42 PM
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?

dukefama
Mar 31, 2008, 9:03 PM
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.