JavaScript Instance Tutorial (19) using HoTMetaL (7)

Source: Internet
Author: User
Javascript| tutorial using JavaScript in HoTMetaL

7. How to identify all predefined macros

HoTMetaL PRO 6.0 defines several internal events that can trigger the corresponding macros. The macros are:

OnAction: When the corresponding menu is clicked, the macro is triggered;

On_application_activate: This macro is triggered when HoTMetaL is loaded from disk or after you run another application and becomes active;

On_application_deactivate: When you run another application, the macro is triggered;

On_application_open: When you open the HoTMetaL, the macro is triggered;

On_application_close: When you close the HoTMetaL, the macro is triggered;

On_before_document_save: When you save a file, the macro is triggered, and the macro is run before the file is saved.

On_before_document_saveas: This macro is triggered when you SaveAs (save As) a document, which runs before SaveAs completes.

On_document_activate: When the document is activated, the macro is triggered;

On_document_deactivate: This macro is triggered when the document is not activated;

On_document_open_complete: The macro is triggered when the user opens the file and the open operation completes;

On_document_close: When you close the document, the macro is triggered;

On_document_save: When you save the document, the macro is triggered;

On_document_saveas: When you SaveAs the document, the macro is triggered;

ON_UPDATE_UI: When the UI is updated, the macro is triggered.

Related Article

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.