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:
yes System menu is displayed in the title bar. no System 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>
Applies To
[ Object Name ] Platform Version Win16: Win32: Mac: Unix: WinCE: Version data is listed when the mouse hovers over a link, or the link has focus. HTA:APPLICATION
See Also
Did you find this topic useful? Suggestions for other topics? write us!
© 1999 microsoft corporation. all rights reserved. terms of use.