Field-Map Scripting

4.2.2.18 Color

Color property


Prototype:

property Color [const AttributeName: string]: longint;

Description:

Use Color to set background color of fields in Data Collector.

Syntax (set):

Syntax (get):

Layer.Color[AttributeName] := expression;

variable := Layer.Color[AttributeName];


Part

Description


expression

The result of the function RGB(R,G,B : integer)

-1 to set the original color of the attribute (AttributeName) as defined in Field-Map Project Manager


variable

A variable declared as a longint type


Layer

A reference to the Field-Map layer as defined in Field-Map Project Manager


AttributeName

The name of the desired attribute as defined in Field-Map Project Manager

Return value:

A longint as a result of the RGB function



See also:

RefreshAttributeLayout; TabStop; Enabled; EnableAttributes; DisableAttributes; Visible; ShowAttributes; HideAttributes; AllignAttribute; AllignAttributes; AlignOverviewGridTitles; OverviewGridAttributeTitle; ClickToAttributeControl; UseKeyboard4ComboBox; OverviewGridAttributeVisible; ShowOverviewGridAttribute; HideOverviewGridAttribute; Color; ResetColor; SetParentColor; SetColorOfAttributes; ResetColorOfAttributes; SetParentColorOfAttributes; EnableControls; DisableControls; ControlsDisabled; EnableScreenControls; DisableScreenControls; ScreenControlsDisabled; SetFocus; DisplayFormat; AttributeHint; ResetAttributeHint; AttributeLabel; PlacerStrategy; MaxSpaceForControlPerc; GoToLayerPage; GoToMapPage; IsLayerPageOnTop; TabVisible; LayerPageVisible; StemProfilePageVisible; ShowInSeparateWindow; ShowThumbnailPreview; LayerVisible; LabelsVisible; AlwaysColored; SaveMiscTreeDataToXML ;