SYSMENU Attribute | sysMenu Property
Sets or gets a Boolean value that indicates whether a system menu is displayed in the HTML Application (HTA).
HTML <HTA:APPLICATION SYSMENU = bMenu... > Scripting [ bMenu = ] HTA:APPLICATION.sysMenu
bMenu Boolean that specifies one of the following values.
- Default. System menu is displayed in the title bar.
- System menu is not displayed in the title bar.
The property is read-only. The property has a default value of yes.
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 upper-left corner of the title bar. When you click the HTA system menu, it displays all of the commands included in the standard 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, by setting sysMenu to
no, the program icon, the Minimize button and the Maximize button are disabled. Similarly, by setting the border property to
none, the program icon, title bar, Minimize button, and Maximize button are disabled.
This example shows how to get 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>