Javascript example tutorial (19) Using HoTMetal (3)_Basic knowledge
Release: 2016-05-16 19:22:30
Original
1104 people have browsed it
Using javascript in HoTMetal
3. What kind of resources are suitable for scripting
When using HotMetal PRO 6.0 to write macros, you can use the following Resources:
Predefined Events
HoTMetaL PRO 6.0 defines several events as well as special user-defined macros to handle them. These macros should be named based on HoTMetal directives. For example, the macro On_Application_Open is called every time HoTMetal PRO 6.0 is opened. The user needs to define this macro and add it to the Macro/hotmetal.mcr file. We will cover all special macros in this tutorial.
Universal document editing interface
There are a total of 8 interfaces that simulate the HoTMetal graphical user interface, as follows:
Application
Document
Documents
DocumentProperty
DocumentProperties
Selection
Range
Font
Document Object Model
HoTMetal uses Document Object Model (DOM, Document Object Model). DOM is a standard model for accessing elements in web pages.
Command Bar Interface
HotMetal provides an interface for its menu bar, which is similar to a user-defined menu bar.
COM Objects
HoTMetaL PRO 6.0 supports three COM objects, which are defined in HMExtras.dll:
HMExtras.fileDlg allows you to access the file dialog box , it has rich commands (such as Save, SaveAS, etc.);
HMExtras.buttonMaker allows users to create new menu buttons;
HMExtras.colorChooser allows users to choose the menu bar color
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Articles by Author
-
2024-10-22 09:46:29
-
2024-10-13 13:53:41
-
2024-10-12 12:15:51
-
2024-10-11 22:47:31
-
2024-10-11 19:36:51
-
2024-10-11 15:50:41
-
2024-10-11 15:07:41
-
2024-10-11 14:21:21
-
2024-10-11 12:59:11
-
2024-10-11 12:17:31