Maptitude GISDK Help |
A sample item is a dialog box item for displaying the way points, lines, or areas appear on a map. A sample button item is a sample item that the user can press like a button. The format for a sample item definition is:
Sample {"item name"} hpos, vpos {, width {, height}} {options}
Sample Button {"item name"} hpos, vpos {, width {, height}} {options} {do
<statements go here>
endItem}
If the width of a sample item or sample button item is not specified, the item is eight characters wide. If the height is not specified, the item is one line high. If the do ... endItem section is included in a sample button item definition, the statements are executed when the user clicks on the button.
Sample Options |
Description |
Disabled |
The sample item is initially disabled. |
Hidden |
The sample item is initially hidden. |
Contents: expression |
The sample that is displayed. The expression must evaluate to a sample point, sample line, or sample area. |
Transparent |
The background of the box in which the sample is displayed is transparent. |
For example:
Sample 2, 2, 25, 17 transparent contents: SamplePoint("Color Bitmap",
"bmp\\camwmaps.bmp", -1, , )
Sample 10, 4, 9, 2 transparent contents: SampleLine(2, null, ColorRGB(65000,0,0),)
For information on how to create samples, see Samples.
©2025 Caliper Corporation | www.caliper.com |