TiLCDMatrix.PlaceText

TiLCDMatrix

Adds a text string to the Matrix.

procedure
PlaceText(AText: String; Col, Row: Integer; AColor: TColor);

Description

Call PlaceText to add a text string to a specific column and row of the Matrix.

AText refers to the String to Place on the matrix. Character Returns and Line Feeds are currently not supported. Call PlaceText multiple times for each line desired.

Col and Row refer to the character column and row where the first character of the string will be positioned.

AColor refers to the color of the string characters being added.

Tip: use ElementColor, ElementChar, and/or ElementCharCode to modify individual characters that you have added. You can even use them instead of PlaceText if you wish to add/modify characters individually. Usually, it is easier to use PlaceText to add whole strings, and then use these methods to modify the characters afterwords.

Example

Delphi

iComponent.PlaceText('Sample Text', 2, 0, clRed); //Third Column, First Row

C++ Builder

iComponent->PlaceText("Sample Text", 2, 0, clRed); //Third Column, First Row

Contents | Index | Previous | Next