Maptitude GISDK Help

SetDefaults()

Summary

Sets default menus, toolbars, and macros.

 

Changes

In Version 2016 added SQL Server Connect Macro as a default macro.

 

Syntax

SetDefaults(array defaults)

 

Argument

Contents

defaults

A series of name-value pairs as described below

 

Name

Type

Contents

Menu

String

The name of the default menu

Toolbar

String

The name of the default toolbar

Activate

String

The name of the default activate macro

Close

String

The name of the default close macro

Done

String

The name of the default done macro

Context Menu

String

The name of the default context menu

Map Menu

String

The name of the default map menu

Map Toolbar

String

The name of the default map toolbar

Map Activate

String

The name of the default map activate macro

Map Close

String

The name of the default map close macro

Map Scale

String

The name of the default map scale change macro

Map Context Menu

String

The name of the default map context menu

Map Annotation Menu

String

The name of the default map single annotation menu

Map Annotations Menu

String

The name of the default map multiple annotations menu

Editor Menu

String

The name of the default editor menu

Editor Toolbar

String

The name of the default editor toolbar

Editor Activate

String

The name of the default editor activate macro

Editor Close

String

The name of the default editor close macro

Editor Selection

String

The name of the default editor selection macro

Editor Highlight

String

The name of the default editor highlight macro

Editor Cell Menu

String

The name of the default editor cell menu

Editor Column Menu

String

The name of the default editor column menu

Editor Row Menu

String

The name of the default editor row menu

Editor Range Menu

String

The name of the default editor range menu

Editor Background Menu

String

The name of the default editor background menu

Layout Menu

String

The name of the default layout menu

Layout Toolbar

String

The name of the default layout toolbar

Layout Activate

String

The name of the default layout activate macro

Layout Close

String

The name of the default layout close macro

Layout Context Menu

String

The name of the default layout context menu

Layout Ruler Menu

String

The name of the default layout ruler menu

Layout Annotation Menu

String

The name of the default layout single annotation menu

Layout Annotations Menu

String

The name of the default layout multiple annotations menu

Layout Framed Annotation Menu

String

The name of the default layout framed annotation menu

Layout Container Menu

String

The name of the default layout container menu

Figure Menu

String

The name of the default figure menu

Figure Toolbar

String

The name of the default figure toolbar

Figure Activate

String

The name of the default figure activation macro

Figure Close

String

The name of the default figure close macro

Figure Click

String

The name of the default figure click macro

Figure Context Menu

String

The name of the default figure context menu

Info Menu

String

The name of the default info context menu

Legend Menu

String

The name of the default legend context menu

Oracle Connect Macro

String

The name of the macro called when the program attempts to make a connection to an Oracle database

SQL Server Connect Macro

String

The name of the macro called when the program attempts to make a connection to a SQL Server database

 

Notes

Example

 

SetDefaults({{"Menu", "default file menu"},{"Toolbar", "default system toolbar"}})

 

 

//call during initialization

SetDefaults({{"Oracle Connect Macro", "get oracle user"}})

...

Macro "get oracle user" (service)

     //get user name & password

     RunDBox("oracle login", &username, &password)

     Return(username + "|" + password)

endMacro

 

 

//call during initialization

SetDefaults({{"SQL Server Connect Macro", "get SQL Server user"}})

...

Macro "get SQL Server user" (service)

     //get user name & password

     RunDBox("SQL Server login", &username, &password)

     Return(username + "|" + password)

endMacro

 

See Also

Function

Summary

CreateEditor()

Creates a new editor window

CreateFigure()

Creates a new figure window

CreateLayout()

Creates a new layout window

CreateMap()

Creates a new, empty map window

 

 

©2025 Caliper Corporation www.caliper.com