SYSMENU Attribute | sysMenu Property
Sets or gets 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
bMenu Boolean that 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 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 tonone
, the program icon, title bar, Minimize button, and Maximize button are disabled.
Example
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>
Code example: https://samples.msdn.microsoft.com/workshop/samples/author/hta/hta_allEX.hta
Applies To
HTA:APPLICATION
See Also