Macros

Macros provide predefined functionality to authors of event handlers to help remove the programming barrier when the desired functionality is simple. In addition, the Event Editor assists you in using the provided macros by providing a fill-in-the-blanks interface for describing how the macro should behave. Macros can be defined to represent a list of commands, actions, or keystrokes.

As you become more experienced with the macros, you can bypass the Macro Assistant and simply type the macro code directly into the Event Editor.

Macros can also be combined with more advanced coding techniques for authors who are familiar with VB.NET or C#.

The following macros are available in the Event Editor:

 

To Enable a Macro:

  1. Select a control on the workspace.
  2. On the Properties window, click the Events button .
  3. Click the Behavior property and then click .
  4. On the Event Editor window, click the Macro button.
  5. On the Macro window, select a macro, and then type the appropriate parameters.
  6. Click OK.

Note: By default the macros are written in VBScript, however you can use different coding languages. Set your programming language using the EventLanguage property.

See Also:

Creating Custom Event Handlers