Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Regular Coder
    Join Date
    Feb 2003
    Posts
    638
    Thanks
    0
    Thanked 0 Times in 0 Posts

    HTA sysMenu property?

    My observation is that the system menu (ie. window accessibility menu & keyboard support) is completely disabled when caption = "no"...

    Now, the documentation doesn't seem to mention this, so before I consider rebuilding such features, I'd like to know if anyone has observed otherwise, please.
    Last edited by swmr; 03-29-2004 at 11:35 PM.
    hmm... ?

  • #2
    Banned
    Join Date
    Sep 2003
    Posts
    3,620
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Apparently so. The only keyboard shortcut I noticed worked was the Find Panel.
    Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
    <HTML>
    <HEAD>
      <TITLE>HTA Demo</TITLE>
      <HTA:APPLICATION ID="oHTA"
         APPLICATIONNAME="myApp"
    	 BORDER="thin"
    	 BORDERSTYLE="normal"
    	 CAPTION="no"
    	 ICON="graphics/face01.ico"
    	 MAXIMIZEBUTTON="yes"
    	 MINIMIZEBUTTON="yes"
    	 SHOWINTASKBAR="no"
    	 SINGLEINSTANCE="no"
    	 SYSMENU="yes"
    	 VERSION="1.0"
    	 WINDOWSTATE="maximize"
      >
    
      <SCRIPT>
    
      /* This function also gets the value of commandLine,
         which cannot be set as an attribute  */
       
      function fnShowProp()
      {
        sTempStr = "applicationName  = " + oHTA.applicationName + "\n" + 
                   "border           = " + oHTA.border          + "\n" +
                   "borderStyle      = " + oHTA.borderStyle     + "\n" + 
                   "caption          = " + oHTA.caption         + "\n" +
                   "commandLine      = " + oHTA.commandLine     + "\n" +
                   "icon             = " + oHTA.icon            + "\n" +
                   "maximizeButton   = " + oHTA.maximizeButton  + "\n" +
                   "minimizeButton   = " + oHTA.minimizeButton  + "\n" + 
                   "showInTaskBar    = " + oHTA.showInTaskBar   + "\n" +
                   "singleInstance   = " + oHTA.singleInstance  + "\n" +  
                   "sysMenu          = " + oHTA.sysMenu         + "\n" + 
                   "version          = " + oHTA.version         + "\n" + 
                   "windowState      = " + oHTA.windowState     + "\n" ;
    		  
        oPre.innerText = sTempStr;		  
      }
      </SCRIPT>
    </HEAD>
    <BODY>
    <P>The attribute values for this HTA are listed below. Click the button to get the corresponding property values.</P>
    <PRE CLASS="clsCode">&lt;HTA:APPLICATION ID="oHTA"
         APPLICATIONNAME="myApp"
    	 BORDER="thin"
    	 BORDERSTYLE="normal"
    	 CAPTION="no"
    	 ICON="graphics/face01.ico"
    	 MAXIMIZEBUTTON="yes"
    	 MINIMIZEBUTTON="yes"
    	 SHOWINTASKBAR="no"
    	 SINGLEINSTANCE="no"
    	 SYSMENU="yes"
    	 VERSION="1.0"
    	 WINDOWSTATE="maximize"
      &gt;
      </PRE>
      <BUTTON onclick="fnShowProp()">Retrieve HTA Property Values</BUTTON>
      <PRE ID="oPre">  
      </PRE>
      <HR>
      <BUTTON onclick="window.close()">Quit Application</BUTTON>
    </BODY>
    </HTML>
    .....Willy

  • #3
    Regular Coder
    Join Date
    Feb 2003
    Posts
    638
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Yeah, that's too bad... some limitations of HTAs just seem unnecessary.

    Thanks for the feedback, WD.
    Last edited by swmr; 03-29-2004 at 11:36 PM.
    hmm... ?


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •