newspeoplefor developersdocumentationdownloads

nGuiTextView Script Interface

nguitextview:

Super Class:

Subclasses:

C++ Class:

Info

Simple widget which renders a vertical list of text lines.

Commands:


setfont

Command Input:
s(FontName)
Command Output:
v
Command Description:
Set the font name. The font must have been registered with the gui server with the nguiserver.addfont command.

getfont

Command Input:
v
Command Output:
s(FontName)
Command Description:
Get the font name.

setborder

Command Input:
f(HoriBorder)
Command Output:
v
Command Description:
Set a horizontal border for the text.

getborder

Command Input:
v
Command Output:
f(HoriBorder)
Command Description:
Get the horizontal border for the text.

settextcolor

Command Input:
ffff(TextColor)
Command Output:
v
Command Description:
Set the text color.

gettextcolor

Command Input:
v
Command Output:
ffff(TextColor)
Command Description:
Get the text color.

beginappend

Command Input:
v
Command Output:
v
Command Description:
Begin appending text.

appendline

Command Input:
s(TextLine)
Command Output:
v
Command Description:
Append a line of text to the internal text array.

endappend

Command Input:
v
Command Output:
v
Command Description:
Finish appending text.

getnumvisiblelines

Command Input:
v
Command Output:
i
Command Description:
Returns the number of fully visible lines which would fit into the widget's area.

setselectionindex

Command Input:
i
Command Output:
v
Command Description:
Set the current selection index.

getselectionindex

Command Input:
v
Command Output:
i
Command Description:
Get the current selection index.

setselectionenabled

Command Input:
b
Command Output:
v
Command Description:
Enable/disable selection handling.

getselectionenabled

Command Input:
v
Command Output:
b
Command Description:
Get selection handling status.

Copyright © 1999-2005 by the contributing authors. Ideas, requests, problems: Send feedback.