TOlfFMXTextImageFrame Class

Definition

Display a text with a bitmap font.

Delphi
type TOlfFMXTextImageFrame = class(TFrame)
Inheritance
TFrame
TOlfFMXTextImageFrame

Constructors

Create(TComponent)

Create an instance of this class

Properties

AutoSize

If True, the text size is reduced or increased to fill its parent. If False, the text size depends only on its Height property, the Width is adapted after a Refresh.

Font

Font to use (an image list with characters as bitmaps)

HasPendingRefresh

Use to delay a Refresh operation during a BeginUpdate/EndUpdate bloc

LetterSpacing

Width to use between two letters.

OnGetImageIndexOfUnknowChar

Event used to get the index of an unknow character in the font image list.

SpaceWidth

Width to use when a text contains a space character.

Text

Text to display

Methods

AjoutImageEtRetourneLargeur(TCustomImageList, TImageIndex, Single, Char)

Add an image (= a character as bitmap) and returns its width.

DefaultOnGetImageIndexOfUnknowChar(Char)

Called by GetImageIndexOfChar() when no index for a char has been found after calling OnGetImageIndexOfUnknowChar event.

DoEndUpdate

Called at the end of a BeginUpdate/EndUpdate bloc. It calls the Refresh method if it has been asked in the bloc.

DoRefresh
Refresh

Repaint the text

RetourneLargeur(TCustomImageList, TImageIndex)

Returns the width of a character image with current drawing height of the text.

SetAutoSize(Boolean)
SetFont(TCustomImageList)
SetHasPendingRefresh(Boolean)
SetLetterSpacing(Single)
SetOnGetImageIndexOfUnknowChar(TOlfFMXTIFOnGetImageIndexOfUnknowChar)
SetSpaceWidth(Single)
SetText(string)
getImageIndexOfChar(string, Boolean)

Returns the index of the char in the image list. If it's not found this function can call the OnGetImageIndexOfUnknowCharIfNotFound event or do a default character swap to find the good one.

Fields