...

View Full Version : HTA sysMenu property?



swmr
03-21-2004, 03:30 AM
My observation is that the system menu (ie. window accessibility menu & keyboard support) is completely disabled when caption = "no"...

Now, the documentation doesn't seem to mention this, so before I consider rebuilding such features, I'd like to know if anyone has observed otherwise, please.

Willy Duitt
03-21-2004, 05:38 AM
Apparently so. The only keyboard shortcut I noticed worked was the Find Panel.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
<TITLE>HTA Demo</TITLE>
<HTA:APPLICATION ID="oHTA"
APPLICATIONNAME="myApp"
BORDER="thin"
BORDERSTYLE="normal"
CAPTION="no"
ICON="graphics/face01.ico"
MAXIMIZEBUTTON="yes"
MINIMIZEBUTTON="yes"
SHOWINTASKBAR="no"
SINGLEINSTANCE="no"
SYSMENU="yes"
VERSION="1.0"
WINDOWSTATE="maximize"
>

<SCRIPT>

/* This function also gets the value of commandLine,
which cannot be set as an attribute */

function fnShowProp()
{
sTempStr = "applicationName = " + oHTA.applicationName + "\n" +
"border = " + oHTA.border + "\n" +
"borderStyle = " + oHTA.borderStyle + "\n" +
"caption = " + oHTA.caption + "\n" +
"commandLine = " + oHTA.commandLine + "\n" +
"icon = " + oHTA.icon + "\n" +
"maximizeButton = " + oHTA.maximizeButton + "\n" +
"minimizeButton = " + oHTA.minimizeButton + "\n" +
"showInTaskBar = " + oHTA.showInTaskBar + "\n" +
"singleInstance = " + oHTA.singleInstance + "\n" +
"sysMenu = " + oHTA.sysMenu + "\n" +
"version = " + oHTA.version + "\n" +
"windowState = " + oHTA.windowState + "\n" ;

oPre.innerText = sTempStr;
}
</SCRIPT>
</HEAD>
<BODY>
<P>The attribute values for this HTA are listed below. Click the button to get the corresponding property values.</P>
<PRE CLASS="clsCode">&lt;HTA:APPLICATION ID="oHTA"
APPLICATIONNAME="myApp"
BORDER="thin"
BORDERSTYLE="normal"
CAPTION="no"
ICON="graphics/face01.ico"
MAXIMIZEBUTTON="yes"
MINIMIZEBUTTON="yes"
SHOWINTASKBAR="no"
SINGLEINSTANCE="no"
SYSMENU="yes"
VERSION="1.0"
WINDOWSTATE="maximize"
&gt;
</PRE>
<BUTTON onclick="fnShowProp()">Retrieve HTA Property Values</BUTTON>
<PRE ID="oPre">
</PRE>
<HR>
<BUTTON onclick="window.close()">Quit Application</BUTTON>
</BODY>
</HTML>


.....Willy

swmr
03-21-2004, 05:54 AM
Yeah, that's too bad... some limitations of HTAs just seem unnecessary. :(

Thanks for the feedback, WD.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum