Home > Web Front-end > JS Tutorial > body text

Javascript example tutorial (19) Using HoTMetal (3)_Basic knowledge

WBOY
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
source:php.cn
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template