TextInputScreen

From Pointui

Inherits Screen.

Prompts the user to enter a text value.

Contents

Events

void OnAcceptValue(String value)

Raised when the user has entered a text value and presses the "Accept" soft key.

Methods

void SetTitle(String title)

Sets the title of the input screen to prompt the user what to enter.

void SetValue(String value)

Sets the value to display in the text box. This is typically done to specify a starting value for the text box.

void SetAcceptButtonText(String text)

Sets the text to display for the right Accept soft key. If this is not specified then the word "Accept" will be used for the soft key.

void SetMultiline(bool isMultiline)

Sets whether the input can select only a single line of text, or multiple lines.

EXAMPLE

	TextInputScreen s;
	s.SetTitle("Enter your User Name:");
	s.SetValue("Start value");
	s.OnAcceptValue = TextInputScreen_OnAcceptValue;
	FlowStack.Branch(s);
 
	void TextInputScreen_OnAcceptValue(String value)
	{
		//do something with value
	}