Unit 'MUIClass.Area' Package
[Overview][Types][Classes][Procedures and functions][Index] [#MUIClass]

TMUIText.Contents

String to be displayed in a text object.

Declaration

Source position: MUIClass.Area.pas line 301

published property TMUIText.Contents : string
  read FContents
  write SetContents;

Description

If the string is larger than available display space, it will be clipped. Setting Contents to '' results in an empty text object.

The string is copied into a private buffer, you can destroy the original after using this tag.

whenever MUI prints strings, they may contain some special character sequences defining format, color and style of the text.

'\n'
Start a new line. With this character you can e.g. create multi line buttons.
ESC -
Disable text engine, following chars will be printed without further parsing.
ESC u
Set the soft style to underline.
ESC b
Set the soft style to bold.
ESC i
Set the soft style to italic.
ESC n
Set the soft style back to normal.
ESC <n>
Use pen number n (2..9) as front pen. n must be a valid DrawInfo pen as specified in intuition".
ESC c
Center current (and following) line(s). This sequence is only valid at the beginning of a string or after a newline character.
ESC r
Right justify current (and following) line(s). This sequence is only valid at the beginning of a string or after a newline character.
ESC l
Left justify current (and following) line(s). This sequence is only valid at the beginning of a string or after a newline character.
ESC I[s]
Draw MUI image with specification <s>. See image for image spec definition.

See also

SetMin

  

[i] Define the initial contents width as minimum width of the item

SetMax

  

[i] Define the initial contents width as maximum width of the item

PreParse

  

Define fixed content independant text format.


Documentation generated on: 2024-11-21