Macro Event Handlers. Source Dynamics Source Insight 4.0
Oglas
Oglas
CHAPTER 6
Macro Event Handlers
Macro Event Handlers
This chapter describes event handler functions that are written in the Source Insight macro language. An event handler is a function that gets called when specific events occur. This chapter assumes you are familiar with the macro language rules and syntax.
Macro Event Handlers
An event handler is a function written in Source Insight's macro language that gets called when specific events occur. Instead of using the macro
or function
keyword to define a function, you use the event
keyword. For example: event ProjectOpen(sFile)
{
}
Event handler functions do not return a value. They cannot be used to abort the event, or to return a value to the program. Also take note of the spelling of the event function parameters. They must be spelled correctly.
Event Handler Names
Event handler names and their function parameters are predefined. Your event handlers must use the exact spelling of the function names and parameters.
The following are events supported by Source Insight:
Source Insight 4 User Guide 411
Preuzimanje
Oglas