[HTA]-HTML Application

Source: Internet
Author: User

Source: http://baike.baidu.com/view/712376.htm? Fr = ala0_1_1

 

HTA is the abbreviation of HTML Application (HTML ApplicationProgram) Is a new concept in software development. html is directly saved to the HTA format, which is an independent application software, it is similar to the software interface designed by VB, C ++, and other programming languages.

The following is an example of HTA:

 

  <! --  Example1.hta  -->  
< Html >
< Head >
< Title > First HTA example </ Title >
< Style >
P { Font-size : 24 ; Cursor : Hand }
</ Style >
</ Head >
< Body >
< Center >
< P >
HTA
HTML Application
HTML Application
</ P >
</ Center >
</ Body >
</ Html >

Put the aboveCodeCopy it to any text editor and save it as *. HTA. Double-click it to see the effect.

 

 

 

HTA is similar to an ordinary webpage structure, so it is easy to design it. Of course, HTA has many unique attributes:

    • 1. The syntax requirements of HTA are looser than those of HTML, and even <HTML> and <body> can be omitted:

 

 
  <! --Example2.hta-->
Farewell
Wang Wei
Let's ask where you want to drink the wine.
......

 

Note: The above is all the code of the entire HTA file.

 

    • 2. You can use <HTA: Application> to set the appearance of the HTA application, such as the title bar and border size, which must be placed in

 

 <! --  Example3.hta  -->  
< Html >
< Head >
< Title > First HTA example </ Title >
< HTA: Application
ID = "Ohta"
Applicationname = "MyApp"
Border = "Thin"
Borderstyle = "Normal"
Caption = "Yes"
Icon = "Filename. ICO"
Maximizebutton = "Yes"
Minimizebutton = "Yes"
Showintaskbar = "No"
Singleinstance = "No"
Sysmenu = "Yes"
Version = "1.0"
Windowstate = "Normal"
Scroll = "Yes" >
</ Head >
< Body >
< Center >
HTA
HTML Application
HTML Application
< P > < Button Onclick = "Self. Close ()" Style = "Font-size: 18" > Leave </ Button > </ P >
</ Center >
</ Body >
</ Html >

<! --
Attribute description:
Applicationname attribute (applicationname)
This attribute is used to set the HTA name.

Border attributes (Border)
This attribute is the window border type set to HTA. The default value is thick.
It can be set to thick and the specified window is a rough border.

Dialog window specifies window as dialog box

None the specified window has no border

Thin specifies the window as a narrow border

Borderstyle attributes (borderstyle)
This attribute is used to set the border format of the HTA window. The default value is normal.
It can be set

Normal normal border format

Combined border of complex concave/convex format

Raised protruding 3D border

Static 3D border format

3D border with sunken Concave

Caption attributes (Caption)
This attribute sets whether to display the title bar or title in the HTA window. The default value is yes.

Icon properties)
This property is used to set the application icon.

Maximizebutton attributes (maximizebutton)
This attribute sets whether to display the maximize button in the HTA window. The default value is yes.

Minimizebutton attribute (minimizebutton)
This attribute sets whether to display the minimization button in the HTA window. The default value is yes.

Showintaskbar attribute (showintaskbar)
This attribute sets whether to display this application in the taskbar. The default value is yes.

Singleinstance attributes (singleinstance)
This attribute sets whether the application can run only once at the same time. The Secondary attribute is identified by the applicationname attribute. The default value is no.

Sysmenu attribute (sysmenu)
This attribute sets whether to display the system menu in the HTA window. The default value is yes.

Version)
This attribute is used to set the application version. The default value is null.

Windowstate attribute (windowstate)
This attribute sets the initial size of the HTA window. The default value is normal.
It can be set to normal default size

Minimize minimize

Maximize Maximization

Scroll attributes (scroll)
This attribute sets whether to display a vertical scroll bar on the right. The default value is yes.
-->

 

 

 

 

========================================================== ====================================

Read more: http://www.codeproject.com/KB/openGL/ntgraph3d_atl.aspx)

The above URL is for German programmersArticleIt is written in combination with ActiveX (MFC + OpenGL ).

Test procedure:

1. register the ntgraph3d. dll file in the ntgraph3d_bin.zip file (if the DLL file is not registered, refer to the following)

2. Double-click demo3d. hta in the ntgraph3d_demo file to run the results.

 

Appendix:

DLL registration method (reference: http://hi.baidu.com/ssln321321/blog/item/35dca8620845e8d1e7113aff.html)

Open the "command prompt character" ("START"-> "run"-> enter "cmd") and enter the registration command "regsvr32 c: \ ntgraph3d. DLL (the uninstall command is "regsvr32/U c: \ ntgraph3d. DLL ")

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.