www.fgks.org   »   [go: up one dir, main page]

Click to Rate and Give Feedback
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

bMenuBoolean that specifies one of the following values.
yesDefault. System menu is displayed in the title bar.
noSystem 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 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, 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.

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>
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.

Standards Information

There is no public standard that applies to this property.

Applies To

HTA:APPLICATION

See Also

Introduction to HTML Applications (HTAs)
Tags What's this?: Add a tag
Community Content
 
Add Community Content
© 2008 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker
DCSIMG