SYSMENU Attribute | sysMenu Property

MS Office DHTML, HTML & CSS

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:
yesSystem menu is displayed in the title bar.
noSystem 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>
This feature requires Internet Explorer 5 or later. Click the icon below to install the latest version. Then reload this page to view the sample.
Microsoft Internet Explorer

Applies To

[ Object Name ]
PlatformVersion
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

html applications overviewInternet Link


Back to topBack to top

Did you find this topic useful? Suggestions for other topics? write us!Internet Link

© 1999 microsoft corporation. all rights reserved. terms of useInternet Link.