Learning is not attained by chance, it must
be sought for with ardor and diligence.
-Abigail Adams
 
Home   News   Courses   Tips   Templates   Forums   Help   Order   Contact   Logon  
 
NEW: Excel Expert 11 - Learn XLOOKUP    dismiss
Tips & Tricks

New Tips Added Weekly!
Click here to get on our Mailing List

   
 
HTA

Beginner - Level 3

Application Attributes/Properties

HTA Application Attributes

Attributes/Properties
AttributePropertyDescription
APPLICATIONNAMEapplicationNameSets or gets the name of the HTML Application (HTA).
BORDERborderSets or gets the type of window border for the HTML Application (HTA).
BORDERSTYLEborderStyleSets or gets the style set for the content border in the HTML Application (HTA) window.
CAPTIONcaptionSets or gets a Boolean value that indicates whether the window is set to display a title bar or a caption, for the HTML Application (HTA).
commandLineGets the argument used to launch the HTML Application (HTA).
CONTEXTMENUcontextMenuSets or gets a string value that indicates whether the context menu is displayed when the right mouse button is clicked.
ICONiconSets or gets the name and location of the icon specified in the HTML Application (HTA).
INNERBORDERinnerBorderSets or gets a string value that indicates whether the inside 3-D border is displayed.
MAXIMIZEBUTTONmaximizeButtonSets or gets a Boolean value that indicates whether a Maximize button is displayed in the title bar of the HTML Application (HTA) window.
MINIMIZEBUTTONminimizeButtonSets or gets a Boolean value that indicates whether a Minimize button is displayed in the title bar of the HTML Application (HTA) window.
NAVIGABLEnavigableSets or gets a string value that indicates whether linked documents are loaded in the main HTML Application (HTA) window or in a new browser window.
SCROLLscrollSets or gets a string value that indicates whether the scroll bars are displayed.
SCROLLFLATscrollFlatSets or gets a string value that indicates whether the scroll bar is 3-D or flat.
SELECTIONselectionSets or gets a string value that indicates whether the content can be selected with the mouse or keyboard.
SHOWINTASKBARshowInTaskBarSets or gets a value that indicates whether the HTML Application (HTA) is displayed in the Windows taskbar.
SINGLEINSTANCEsingleInstanceSets or gets a value that indicates whether only one instance of the specified HTML Application (HTA) can run at a time.
SYSMENUsysMenuSets or gets a Boolean value that indicates whether a system menu is displayed in the HTML Application (HTA).
VERSIONversionSets or gets the version number of the HTML Application (HTA).
WINDOWSTATEwindowStateSets or gets the initial size of the HTA window.

Border
ValueDescription
thickDefault. Thick window border, plus a size grip and sizing border for resizing the window.
dialogDialog window border.
noneNo window border.
thinThin window border with a caption.

The property is read-only. The property has a default value of thick.

Note The border property is read-only; however, the BORDER attribute can be used to set the initial value. The border property affects the window border and is valid only for HTA windows that contain a title bar or caption. Setting border to none eliminates the title bar, the program icon, the Minimize button, and the Maximize button. This property can be used with the borderStyle property, which controls the content border in the window.

Border


BorderStyle
ValueDescription
normalDefault. Normal border.
complexRaised and sunken border.
raisedRaised 3-D border.
static3-D border typically used for windows that do not accept user input.
sunkenSunken 3-D border.

The property is read-only. The property has a default value of normal.

Note The borderStyle property is read-only; however, the BORDERSTYLE attribute can be used to set the initial value. All HTAs have two adjacent borders: one for the content of a window, and one for the application window. The borderStyle property sets the style for the content border, while the border property controls the application window border.

Border


Example
	<HTA:APPLICATION
		APPLICATIONNAME = "A Simple HTA Application"
		ICON = "599CD.ico"
		ID = "NAME"
		BORDER = "thick"
		CAPTION = "yes"
		SHOWINTASKBAR = "yes"
		SINGLEINSTANCE = "yes"
		SYSMENU = "yes"
		WINDOWSTATE="maximize"
		SCROLL = "yes"
		SCROLLFLAT = "no"
		VERSION = "1.0"
		INNERBORDER = "yes"
		SELECTION = "yes"
		MAXIMIZEBUTTON = "yes"
		MINIMIZEBUTTON = "yes"
		NAVIGABLE = "yes"
		CONTEXTMENU = "yes"
		BORDERSTYLE = "normal"
	/>
	

Sample Files
Attributes.hta


Previous Lesson: Beginner Level 2 | Next Lesson: Beginner Level 4

 

Alex Hedley (Avatar) By: Alex Hedley


Click here to sign up for more FREE tips

 

 

Learn
 
Accessindex
Excelindex
Wordindex
Windowsindex
PowerPointindex
Photoshopindex
Visual Basicindex
ASPindex
Seminars
More...
Customers
 
Account Login
Online Theater
Downloads
Lost Password
Free Upgrades
Insider Circle
Student Databases
Change Email
Info
 
Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Articles
Search The Site
Waiting List
Production Schedule
Collapse Menus
Help
 
Live Chat
Customer Support
WalkThru Tutorials
Troubleshooting
FAQs
TechHelp
Consulting Services
About
 
Background
Testimonials
Jobs
Affiliate Program
Richard Rost
Free Lessons
Mailing List
Order
 
Video Tutorials
Handbooks
MYOLP Memberships
Idiot's Guide to Excel
Volume Discounts
Payment Info
Shipping
Terms of Sale
Gift CDs
Contact
 
Live Chat
General Info
Support Policy
Contact Form
Email Richard
Mailing Address
Phone Number
Fax Number
Course Survey
Facebook    Twitter

YouTube Channel    LinkedIn

Blog RSS Feed