Click to return to the DHTML, HTML     
SINGLEINSTANCE Attribute ...     VERSION Attribute | versi...     HTML Applications Referen...    
Web Workshop  |  DHTML, HTML & CSS

SYSMENU Attribute | sysMenu Property


Retrieves whether a system menu is displayed in the HTML Application (HTA).

Syntax

HTML<HTA:APPLICATION SYSMENU=bMenu>
Scripting[ bMenu = ] oHTA.sysMenu

Possible Values

bMenu Boolean that specifies one of the following values:
yesSystem menu is displayed in the title bar.
noSystem menu is not displayed in the title bar.

The property is read-only with a default value of yes.

Remarks

The HTA system menu is denoted by the program icon on the far left corner of the title bar. When clicked, the HTA system menu displays all the commands included in the standard Microsoft® Windows® system menu, including restore, move, size, minimize, maximize, and close.

Many of the properties that affect the user interface of the window are interdependent. For example, setting sysMenu to no disables the program icon and the Minimize and Maximize buttons. Similarly, setting the border property to none disables the program icon, title bar, and Minimize and Maximize buttons.

Example

This example shows how to retrieve the sysMenu property.

Sample Code

<HTML>
<HEAD>
   <HTA:APPLICATION ID="oHTA"
    APPLICATIONNAME="myApp"
    SYSMENU="yes"
   >
   <SCRIPT>
      alert("sysMenu    = " + oHTA.sysMenu);
   </SCRIPT>
</HEAD>
<BODY SCROLL="no">

</BODY>
</HTML>
This feature requires Internet Explorer 5 or later. Click the icon below to install the latest version. Then reload this page to view the sample.
Microsoft Internet Explorer

Applies To

[ Object Name ]
PlatformVersion
Win16:
Win32:
Mac:
Unix:
WinCE:
HTA:APPLICATION

See Also

HTML Applications Overview



Back to topBack to top

Did you find this topic useful? Suggestions for other topics? Write us!

© 1999 Microsoft Corporation. All rights reserved. Terms of use.