SDK Documentation & Reference.Documentation Pdf



NKTextView


Overview

This control is used to display large amount of text.

init(x, y, width, height)

initializes text view with given coordinates and size

show()

shows control (not creating)

hide()

hides control (not destroying)

setString(value)

sets string value in control

getString()

synchronous method returning contents of the control in string form (if you need other type please use parseInt, parseFloat, etc)

setFontSize(size)

sets the font size for initialized view

setEditable(value)

enables/disables ability to edit for user. Variable value can take following values: "yes", "no", 1, 0.

Example:

var textView = new NKTextView;
textView.init(0, 0, 320, 100);
textView.setEditable("no");
textView.setString("HELLO WORLD HELLO WORLD HELLO WORLD HELLO WORLD HELLO WORLD HELLO
WORLD");
textView.setFontSize(20);
textView.show();