Sets or retrieves a Boolean value that indicates whether a system menu is displayed in the HTML Application (HTA).
dhtml语法
HTML | <HTA:APPLICATION SYSMENU
= bMenu... >
|
---|
Scripting | [ bMenu = ] HTA:APPLICATION.sysMenu |
---|
DHTML可能的值
bMenu | Booleanthat specifies one of the following values: yes | Default. System menu is displayed in the title bar. | no | System 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.
DHTML代码范例
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.
是否符合公共标准
There is no public standard that applies to this property.
Applies To
更多语法参考
Introduction to HTML Applications (HTAs)