Field-Map Scripting

4.4.6.6 DrawText

DrawText procedure


Prototype:

procedure DrawText (  const X_m, Y_m : double;

                     const Text : string;

                     const HorizontalAlignment, VerticalAlignment : integer;

                     const Color, FontName : string;

                     const Size : double;

                     const Rotation_deg : double;

                     const Bold, Italic, Underline : boolean);


Description:

DrawText procedure shows text expression with predefined formatting in FieldMap Data collector map window.

Syntax:

Project.DrawText (X, Y, Text, HorizontalAlignment, VerticalAlignment, Color, FontName, Size, Rotation, Bold, Italic, Underline);


Part

Description


Project

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


X,Y

Coordinates defining the position of text inside the window


Text

Text expression to be drawn


Horizontal Alignment

Vertical Alignment

Spacing of the text inside the text box in px


Color

String expression defining the color of text


FontName

Font style


Size

Size of the text in px


Rotation

Rotation of the text in degrees


Bold            

Italic

Underline

Boolean expressions defining basic formatting of the text






Return value:


none

Note:

Alignment definitions:

Top = $00000001;

Bottom = $00000002;

Left = $00000003;

Right = $00000004;

Center = $00000005;

Baseline = $00000006



See also:

GetPolygonIntersectArea_m2; OverlayPolygonLayers; TransferAttributeValuesFromPolygonsToPointsOrCentroids; GetPoint; GetCentroids; DrawText; DrawPoint; DrawLine; DrawPolygon; DrawCircle; DrawRectangle; FlashPolygon; FlashLine; FlashPoint; SelectedPointCount; SelectedPointID; SelectedLineCount; SelectedLineID; GetCurrentPosition; SetCurrentPosition; SetBasicExtent; GetMapExtent; GetMapFullExtent; GetBasicExtent; ZoomToPolygon; ZoomToLine; MapExtentAsVariant; AddReferencePoint; InvertColors; FindTargetHeight; SetCircularPlotBoundary; TrimLineByPlotBoundary; RefreshMap; RefreshMapRectangle; RefreshTrackingLayer; RefreshTrackingLayerRectangle; ScreenMilimeters2MapDistance_m; MapToScreen; SaveShapesToBlobs; SaveShapesOfCurrentPlotToBlobs; SaveShapesOfAllPlotsToBlobs; ProjectionToWGS84; WGS84ToProjection