TOlfFMXTextImageFrame Class

Display a text with a bitmap font.

Unit: Olf.FMX.TextImageFrame
TFrame
  Olf.FMX.TextImageFrame.TOlfFMXTextImageFrame
type TOlfFMXTextImageFrame = class(TFrame)

The TOlfFMXTextImageFrame type exposes the following members.

Show:
 NameDescription
Create

Create an instance of this class

Top
Show:
 NameDescription
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

Top
Show:
 NameDescription
AjoutImageEtRetourneLargeur

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

DefaultOnGetImageIndexOfUnknowChar

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.

Refresh

Repaint the text

RetourneLargeur

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

getImageIndexOfChar

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.

Top