SYSMENU Attribute | sysMenu Property

Internet Development Index

Sets or retrieves a Boolean value that indicates whether a system menu is displayed in the HTML Application (HTA).

Syntax

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

Possible Values

bMenuBoolean爐hat specifies one of the following values:
yesDefault. System menu is displayed in the title bar.
noSystem menu is not displayed in the title bar.

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

Remarks

Note  The sysMenu property is read-only; however, the SYSMENU attribute can be used to set the initial value.

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.

<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 Microsoft® Internet Explorer 5 or later. Click the following icon to install the latest version. Then reload this page to view the sample.

Standards Information

There is no public standard that applies to this property.

Applies To

HTA:APPLICATION

See Also

Introduction to HTML Applications (HTAs)