Javascript example tutorial (19) use HoTMetal (3) _ basic knowledge
Source: Internet
Author: User
Javascript example tutorial (19) use HoTMetal (3) Use javascript in HoTMetal
3. what kind of resources are suitable for script writing?
When using HotMetal PRO 6.0 to write macros, you can use the following resources:
Predefined events
HoTMetaL PRO 6.0 defines several events and special user-defined macros to process them. These macros should be named based on HoTMetal commands. For example, the macro On_Application_Open is called every time HoTMetal PRO 6.0 is opened. You need to define the Macro and add it to the Macro/hotmetal. mcr file. All the special macros will be involved in this tutorial.
General document editing interface
There are a total of 8 interfaces to simulate the HoTMetal graphic user interface, as shown below:
Application
Document
Documents
DocumentProperty
DocumentProperties
Selection
Range
Font
Document Object Model
HoTMetal uses the Document Object Model (DOM, Document Object Model. DOM is a standard model used to access elements in a webpage.
Command line interface
HotMetal provides an interface for its menu bar, which is similar to a user-defined menu bar.
COM object
HoTMetaL PRO 6.0 supports three COM objects, which are defined in HMExtras. dll:
HMExtras. fileDlg allows you to access the file dialog box, which has rich commands (such as Save and SaveAS );
HMExtras. buttonMaker allows you to create a menu button;
HMExtras. colorChooser allows you to select the menu bar color
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.