Maptitude GISDK Help |
GISDK macro resources are like subroutines, and consist of a series of Caliper Script statements. A GISDK macro is executed when:
A user chooses a menu item
A user clicks a toolbar button
The GISDK macro is invoked with RunMacro()
GISDK macros can be embedded in a dialog box resource.
A GISDK macro resource consists of the optional static declaration, a macro name, up to eight optional arguments, and a series of Caliper Script statements that make up the GISDK macro. The structure of a GISDK macro resource is:
{static} Macro "Macroname" {(argument1, argument2, ...)}
<statements go here>
endMacro
If you declare a macro static it can only be called from resources within the same resource file in which the macro is defined.
GISDK macro names are case sensitive, and can contain any combination of letters, numbers, and spaces. A GISDK macro resource can return a single value using the function Return().
You can use the GetInterface() GISDK function to get the name of the UI Database that a specific macro, or the currently running macro, is in.
For more information, see...
©2025 Caliper Corporation | www.caliper.com |