TBSetTextΒΆ

TBSetText replaces the text of the specified object with new text.

bool = TBSetText(hText, ssText)

Return Value

If the function succeeds, the return value bool is TRUE (1); otherwise it is FALSE (0).

Parameters

hText

The handle of a text object created with TBCreate.

ssText

ssText is the new text object text. It can be any length.

Comment

To create a multiline text, use the following escape sequence: \n or \r\n.

Example

hText = TBCreate();
TBSetText(hText, "First line\nSecond Line\nThird Line");

id-741853