Returns information about a specific display style override.
Syntax
StyleOverrideInfo( window_id, layer_number, override_index, attribute )
window_id is the integer window identifier of a Map window.
layer_number is the number of a layer in the current Map window (for example, 1 for the top layer); to determine the number of layers in a Map window, call the MapperInfo() function.
override_index is an integer index (1-based) for the override definition within the layer.
attribute is a code indicating the type of information to return; see table below.
Return Value
Return value depends on attribute parameter.
Description
This function returns information about the specified display style override for one layer in an existing Map window. The layer_number must be a valid layer (1 is the topmost table layer, and so on). The attribute parameter must be one of the codes from the following table; codes are defined in MAPBASIC.DEF.
Attribute Code | ID | LayerInfo() Return Value |
---|---|---|
STYLE_OVR_INFO_NAME | 1 | Style override name. |
STYLE_OVR_INFO_VISIBILITY | 2 | Smallint value, indicating whether the style override is visible; Return value will be one of the values:
|
STYLE_OVR_INFO_ZOOM_MIN | 3 | Float value, indicating the minimum zoom value at which the style override displays. |
STYLE_OVR_INFO_ZOOM_MAX | 4 | Float value, indicating the maximum zoom value at which the style override displays. |
STYLE_OVR_INFO_ARROWS | 5 | Logical value; TRUE if override displays direction arrows on linear objects. |
STYLE_OVR_INFO_NODES | 6 | Logical value; TRUE if override displays object nodes. |
STYLE_OVR_INFO_CENTROIDS | 7 | Logical value; TRUE if override displays object centroids. |
STYLE_OVR_INFO_ALPHA | 8 | SmallInt value, representing the alpha factor for the specified override.
|
STYLE_OVR_INFO_TRANSLUCENCY | 9 | SmallInt value, representing the translucency percentage for the specified override.
|
STYLE_OVR _INFO_LINE | 10 | Pen style used for displaying linear objects. If there are multiple styles, the bottom Pen style is returned. |
STYLE_OVR _INFO_PEN | 11 | Pen style used for displaying the borders of filled objects. If there are multiple styles, the bottom Pen style is returned. |
STYLE_OVR_INFO_BRUSH | 12 | Brush style used for displaying filled objects. If there are multiple styles, the bottom Brush style is returned. |
STYLE_OVR_INFO_SYMBOL | 13 | Symbol style used for displaying point objects. If there are multiple styles, the bottom Symbol style is returned. |
STYLE_OVR_INFO_FONT | 14 | Font style used for displaying text objects. If there are multiple styles, the bottom Font style is returned. |
STYLE_OVR_INFO_SYMBOL_COUNT | 15 | SmallInt value, indicating the number of multiple SYMBOL styles. |
STYLE_OVR_INFO_LINE_COUNT | 16 | SmallInt value, indicating the number of multiple LINE styles. |
STYLE_OVR_INFO_PEN_COUNT | 17 | SmallInt value, indicating the number of multiple PEN styles. |
STYLE_OVR_INFO_BRUSH_COUNT | 18 | SmallInt value, indicating the number of multiple BRUSH styles. |
STYLE_OVR_INFO_FONT_COUNT | 19 | SmallInt value, indicating the number of multiple FONT styles. |
Example
StyleOverrideInfo(nMID, nLayer, nOverride, STYLE_OVR_INFO_PEN_COUNT)
See Also:
LabelOverrideInfo() function, LayerStyleInfo() function, Set Map statement, LayerInfo() function