Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 03-21-2004, 03:30 AM   PM User | #1
swmr
Regular Coder

 
Join Date: Feb 2003
Posts: 638
Thanks: 0
Thanked 0 Times in 0 Posts
swmr is an unknown quantity at this point
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.
__________________
hmm... ?

Last edited by swmr; 03-29-2004 at 10:35 PM..
swmr is offline   Reply With Quote
Old 03-21-2004, 05:38 AM   PM User | #2
Willy Duitt
Banned

 
Join Date: Sep 2003
Posts: 3,620
Thanks: 0
Thanked 0 Times in 0 Posts
Willy Duitt is an unknown quantity at this point
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
Willy Duitt is offline   Reply With Quote
Old 03-21-2004, 05:54 AM   PM User | #3
swmr
Regular Coder

 
Join Date: Feb 2003
Posts: 638
Thanks: 0
Thanked 0 Times in 0 Posts
swmr is an unknown quantity at this point
Yeah, that's too bad... some limitations of HTAs just seem unnecessary.

Thanks for the feedback, WD.
__________________
hmm... ?

Last edited by swmr; 03-29-2004 at 10:36 PM..
swmr is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 01:50 AM.


Advertisement
Log in to turn off these ads.