Maptitude GISDK Help |
The table below lists all of the GISDK functions that are used to set up and configure printers and to print maps, editors, and layout windows:
GISDK Function |
Summary |
Displays an extended version of the "Print" common dialog, with controls for setting up the printing format for an editor. |
|
Displays the "Print" common dialog |
|
Gets the default printer |
|
Gets the printer for a layout window |
|
Gets the layout printer settings |
|
Gets the size of a layout printer's imageable area |
|
Gets whether items in a layout are resized automatically when the page size or number of pages changes |
|
Determines whether a layout has changed since it was last saved to a file |
|
Gets the model and driver names for all installed printers |
|
Gets the current print margin settings |
|
Gets the printer for a layout window |
|
Collects printer settings for a layout window |
|
Displays an extended version of the "Print" common dialog, with check boxes for whether to print at a fixed scale and whether to print fonts at fixed point size or adjusted to match the map window |
|
Prints all or part of an editor window |
|
Prints a figure as shown in the figure window |
|
Prints all or part of a layout window |
|
Prints a map as shown in the map window |
|
Sets the printer for the current layout window |
|
Sets the layout printer settings |
|
Sets items in a layout to resize automatically when the page size or number of pages changes |
|
Sets the left, top, right, and bottom printing margin settings |
The table below lists GISDK functions that support the manipulation of layout windows:
GISDK Function |
Summary |
Adds an annotation to a map or layout window |
|
Centers a layout at a specific point |
|
Allows the user to pan around in a layout by dragging it to a new position |
|
Allows user to edit annotations in the current map or layout |
|
Redraw a layout window |
|
Gets the number of printed pages in a layout |
|
Gets the scale of a layout window |
|
Gets a list of the available paper measurement units |
|
Gets the current paper measurement unit |
|
Computes the ratio between two measurement units |
|
Displays an extended version of the "Print Setup" common dialog, with controls for setting page dimensions and margins |
|
Sets the number of printed pages in a layout |
|
Changes the layout window to display at the scale that was in effect before the most recent change |
|
Sets the scale of a layout window |
|
Sets the current paper measurement unit |
|
Controls the portion of a layout that is displayed in a layout window |
|
Changes the layout scale by a factor |
When working in a layout, locations on the layout page are specified using coordinates, where the measurements are in hundredths of a printer's point (1/7200ths of an inch) from the upper-left hand corner of the layout. For example:
// On an 8-1/2" X 11" layout... |
|
x = Coord(3600, 3600) |
// x is 0.5 inches from the top and 0.5 inches from the left |
y = Coord(57600, 57600) |
// y is 0.5 inches from the bottom and 0.5 inches from the right |
|
|
pgsize = GetlayoutPrintSize() |
// Total printable width and height... |
mrgn = GetlayoutPrintMargins() |
// Margins on each printed sheet... |
lpgs = GetlayoutPages() |
// Number of pages across and down... |
// Compute the center of the layout, left to right
center_horiz = (lpgs[1] * pgsize.lon + mrgn[1] + mrgn[3]) / 2.0
// Compute the center of the layout, top to bottom
center_vert = (lpgs[2] * pgsize.lat + mrgn[2] + mrgn[4]) / 2.0
©2025 Caliper Corporation | www.caliper.com |