Maptitude GISDK Help |
Creates a new editor window from an editor that appears in a layout.
ed_name = OpenEditorFromAnnotation(string layout_name, integer id, array options)
Argument |
Contents |
layout_name |
The name of the layout containing the editor |
id |
The ID of the editor annotation in the layout |
Option |
Type |
Contents |
Activate Macro |
String |
The name of a macro that is called whenever the window is activated |
Close Macro |
String |
The name of a macro that is called when the user closes the window from the system menu |
Done Macro |
String |
The name of a macro that is called after the window is closed |
Font |
String |
The font in which data are displayed |
Grid |
Boolean |
Whether the editor displays a grid between cells |
Highlight Macro |
String |
The name of a macro called whenever the user changes cells that are highlighted in the editor (by clicking on a cell or dragging over a range of cells) |
Locked |
Boolean |
If "True" the Close option does not appear in the system menu; if "False" the Close option does appear |
Menu |
String |
The menu associated with the window |
Position |
2 integers |
The screen location of the window (x, y) |
Read Only |
Boolean |
Whether the data are read-only |
Row Labels |
String |
Number of columns (fields) that should be locked in place at the left edge of the editor window. This option must be specified as a string (e.g., "2") |
Show Sets |
Boolean |
Whether the editor includes columns that indicate which records belong to selection sets |
Size |
2 integers |
The screen size of the window (x, y) |
Title |
String |
The title of the window |
Toolbar |
String |
The toolbar associated with the window |
The position and size of the editor window are expressed as percentages of the Maptitude frame.
The attached menu and toolbar are automatically displayed whenever the editor is activated.
If the menu, toolbar, activate macro, close macro, or highlight macro is not specified, OpenEditorFromAnnotation() uses the default specified with SetDefaults(). If an editor specific default was not specified with SetDefaults() then OpenEditorFromAnnotation() uses the generic default.
For a full list of GISDK functions for annotations, see Freehand Items (Annotations).
A string containing the actual name of the new editor.
Error Type |
Meaning |
Error |
The editor window could not be created |
NotFound |
The specified layout or editor annotation does not exist |
Function |
Summary |
Closes an editor window |
|
Creates an editor from a file |
|
Creates a new editor window |
|
Saves an editor to a file |
|
Sets default menus, toolbars, and macros |
©2025 Caliper Corporation | www.caliper.com |