josephmkchan
Jan 25, 2021, 12:27 AM
Hi support,
I am not sure it is a system bug or my program bug that if click the window border to resize then it hang cannot click buttons inside that window but can click "close" button.
Also, how to clear "reset" the window setting (clear cache maybe?) that everytime I click the button to open a window? I tried to use the window.load() and window.clearContent() after adding listener show and hide event on the button, but seems not work? Or I used wrong methods?
And, not sure also due to these 2 event, when type this page Home.aspx on the browser and then it also load to "InboundTracker.aspx" (seems only click the button to open a new window)
Here is my code of these 3 questions, also i attached the image of what click window border resize
<%@ Page Language="C#" %>
<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
<script runat="server">
override protected void OnInit(EventArgs e)
{
//base.OnInit(e);
}
protected void Page_Load(object sender, EventArgs e)
{
Window win = new Window()
{
ID = "InboundWin",
Title = "Inbound Tracker Main Page",
Modal = true,
AutoRender = false,
Maximized=true,
Layout = "fit",
Loader = new ComponentLoader
{
Url = "InboundTracker_Win2.aspx",
Mode = LoadMode.Frame, //Frame
DisableCaching = true,
LoadMask =
{
ShowMask = true
}
}
};
this.Form.Controls.Add(win);
Window winLogon = new Window()
{
ID = "LogonWindow1",
Title = "Logon",
Width = Unit.Pixel(500),
Height = Unit.Pixel(500),
Modal = true,
AutoRender = false,
Collapsible = true,
Maximizable = true,
Hidden = true,
Loader = new ComponentLoader
{
Url = "Logon.aspx",
Mode = LoadMode.Frame, //Data
DisableCaching = true,
LoadMask =
{
ShowMask = true
}
}
};
this.Form.Controls.Add(winLogon);
}
</script>
<!DOCTYPE html>
<html>
<head runat="server">
<title>eZConnect</title>
<link href="/resources/css/examples.css" rel="stylesheet" />
<style>
.my-scale .x-btn-inner {
line-height: 48px;
padding-top: 48px;
}
.my-scale .x-btn-icon-el {
background-size: 56px;
height:56px;
width:56px;
}
.my-scale {
background-color : #005D62;
border-color : #005D62;
height:60px;
}
.x-over {
background-color : #C3D500;
border-color : #005D62;
}
.x-button-pressed {
background-color : #729748 !important;
border-color : #005D62;
}
.x-window-header,
.x-window-tc, .x-window-tr, .x-window-tl,
.x-window-ml, .x-window-mr,
.x-window-bc, .x-window-br, .x-window-bl, .x-window-frame,
.x-window-border
{
background-color: #005D62;
margin:0px,0px,0px,0px;
padding:0px,0px,0px,0px;
box-shadow: rgba(0,0,0,0) 0px 0px 0px;
}
</style>
</head>
<body>
<form runat="server">
<ext:ResourceManager runat="server" />
<table cellpadding="0" cellspacing="0" border="0" bgcolor="#005D62" width="100%">
<tr>
<td>
<ext:Image runat="server" ImageUrl="Images/ezconnect_big_logo.jpg" Width="298" Height="65" Resizable="false" />
</td>
<td>
<ext:Button runat="server" Text="News Annoucement" Cls="my-scale" OverCls="x-over" PressedCls="x-button-pressed" IconUrl="Icons/news.png">
<Listeners>
<Click Handler="alert('To be constructed');" />
</Listeners>
</ext:Button>
</td>
<td>
<ext:Button runat="server" Text="Inbound Tracker" Cls="my-scale" OverCls="x-over" PressedCls="x-button-pressed" IconUrl="Icons/inboundtracker.png">
<Listeners>
<Click Handler="#{InboundWin}.show(this);"/>
<Show Handler="#{InboundWin}.load();" />
<Hide Handler="#{InboundWin}.clearContent();" />
25497
</Listeners>
</ext:Button>
</td>
<td>
<ext:Button runat="server" Text="Product List" Cls="my-scale" OverCls="x-over" PressedCls="x-button-pressed" IconUrl="Icons/productrelease.png">
<Listeners>
<Click Handler="alert('To be constructed');" />
</Listeners>
</ext:Button>
</td>
<td>
<ext:Button runat="server" Text="Incident Log" Cls="my-scale" OverCls="x-over" PressedCls="x-button-pressed" IconUrl="Icons/incidentlog.png">
<Listeners>
<Click Handler="alert('To be constructed');" />
</Listeners>
</ext:Button>
</td>
<td width="850" align="right">
<ext:Button runat="server" Text="Logon" Cls="my-scale" OverCls="x-over" PressedCls="x-button-pressed" IconUrl="Icons/logon.png">
<Listeners>
<Click Handler="#{LogonWindow1}.show(this);" />
</Listeners>
</ext:Button>
</td>
</tr>
</table>
<ext:Image runat="server" ImageUrl="Images/firstpage1.jpg" Width="920" Height="520"/>
</form>
</body>
</html>
25497
I am not sure it is a system bug or my program bug that if click the window border to resize then it hang cannot click buttons inside that window but can click "close" button.
Also, how to clear "reset" the window setting (clear cache maybe?) that everytime I click the button to open a window? I tried to use the window.load() and window.clearContent() after adding listener show and hide event on the button, but seems not work? Or I used wrong methods?
And, not sure also due to these 2 event, when type this page Home.aspx on the browser and then it also load to "InboundTracker.aspx" (seems only click the button to open a new window)
Here is my code of these 3 questions, also i attached the image of what click window border resize
<%@ Page Language="C#" %>
<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
<script runat="server">
override protected void OnInit(EventArgs e)
{
//base.OnInit(e);
}
protected void Page_Load(object sender, EventArgs e)
{
Window win = new Window()
{
ID = "InboundWin",
Title = "Inbound Tracker Main Page",
Modal = true,
AutoRender = false,
Maximized=true,
Layout = "fit",
Loader = new ComponentLoader
{
Url = "InboundTracker_Win2.aspx",
Mode = LoadMode.Frame, //Frame
DisableCaching = true,
LoadMask =
{
ShowMask = true
}
}
};
this.Form.Controls.Add(win);
Window winLogon = new Window()
{
ID = "LogonWindow1",
Title = "Logon",
Width = Unit.Pixel(500),
Height = Unit.Pixel(500),
Modal = true,
AutoRender = false,
Collapsible = true,
Maximizable = true,
Hidden = true,
Loader = new ComponentLoader
{
Url = "Logon.aspx",
Mode = LoadMode.Frame, //Data
DisableCaching = true,
LoadMask =
{
ShowMask = true
}
}
};
this.Form.Controls.Add(winLogon);
}
</script>
<!DOCTYPE html>
<html>
<head runat="server">
<title>eZConnect</title>
<link href="/resources/css/examples.css" rel="stylesheet" />
<style>
.my-scale .x-btn-inner {
line-height: 48px;
padding-top: 48px;
}
.my-scale .x-btn-icon-el {
background-size: 56px;
height:56px;
width:56px;
}
.my-scale {
background-color : #005D62;
border-color : #005D62;
height:60px;
}
.x-over {
background-color : #C3D500;
border-color : #005D62;
}
.x-button-pressed {
background-color : #729748 !important;
border-color : #005D62;
}
.x-window-header,
.x-window-tc, .x-window-tr, .x-window-tl,
.x-window-ml, .x-window-mr,
.x-window-bc, .x-window-br, .x-window-bl, .x-window-frame,
.x-window-border
{
background-color: #005D62;
margin:0px,0px,0px,0px;
padding:0px,0px,0px,0px;
box-shadow: rgba(0,0,0,0) 0px 0px 0px;
}
</style>
</head>
<body>
<form runat="server">
<ext:ResourceManager runat="server" />
<table cellpadding="0" cellspacing="0" border="0" bgcolor="#005D62" width="100%">
<tr>
<td>
<ext:Image runat="server" ImageUrl="Images/ezconnect_big_logo.jpg" Width="298" Height="65" Resizable="false" />
</td>
<td>
<ext:Button runat="server" Text="News Annoucement" Cls="my-scale" OverCls="x-over" PressedCls="x-button-pressed" IconUrl="Icons/news.png">
<Listeners>
<Click Handler="alert('To be constructed');" />
</Listeners>
</ext:Button>
</td>
<td>
<ext:Button runat="server" Text="Inbound Tracker" Cls="my-scale" OverCls="x-over" PressedCls="x-button-pressed" IconUrl="Icons/inboundtracker.png">
<Listeners>
<Click Handler="#{InboundWin}.show(this);"/>
<Show Handler="#{InboundWin}.load();" />
<Hide Handler="#{InboundWin}.clearContent();" />
25497
</Listeners>
</ext:Button>
</td>
<td>
<ext:Button runat="server" Text="Product List" Cls="my-scale" OverCls="x-over" PressedCls="x-button-pressed" IconUrl="Icons/productrelease.png">
<Listeners>
<Click Handler="alert('To be constructed');" />
</Listeners>
</ext:Button>
</td>
<td>
<ext:Button runat="server" Text="Incident Log" Cls="my-scale" OverCls="x-over" PressedCls="x-button-pressed" IconUrl="Icons/incidentlog.png">
<Listeners>
<Click Handler="alert('To be constructed');" />
</Listeners>
</ext:Button>
</td>
<td width="850" align="right">
<ext:Button runat="server" Text="Logon" Cls="my-scale" OverCls="x-over" PressedCls="x-button-pressed" IconUrl="Icons/logon.png">
<Listeners>
<Click Handler="#{LogonWindow1}.show(this);" />
</Listeners>
</ext:Button>
</td>
</tr>
</table>
<ext:Image runat="server" ImageUrl="Images/firstpage1.jpg" Width="920" Height="520"/>
</form>
</body>
</html>
25497