TextArea

From NSB App Studio
Revision as of 21:08, 24 July 2012 by Brendon (talk | contribs) (Created page with "file:TextArea.jpg '''Description''' The TextArea control is used to display a multi line input area. On some platforms, it is resizable. While a variety of different ev...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Description

The TextArea control is used to display a multi line input area. On some platforms, it is resizable.

While a variety of different events are available, the usual response to editing a TextArea is to call the function <buttonID>_onblur().

autocapitalize Autocapitalize. iOS. May not be available on other platforms.
autocomplete Autocomplete. May not be available on other platforms.
autocorrect Autocorrect. May not be available on other platforms.
readonly If set to “True”, the control cannot be edited.
setSelectionRange(start, end) Selects from character start to character end in the TextArea. Runtime only.
text The contents of the TextArea. Same as value.
value The contents of the TextArea.

To add a TextArea to your app, choose the TextArea icon in the Toolbar, then position it on the Design Screen. Use the Property Editor to set the properties you need. If necessary, add functions to your code to respond to the events that come from the TextArea: usually, just onblur.

Properties

Standard properties are supported.

Events

Standard events are supported, plus:

onblur Called when exiting the field.
onkeypress Called when a key is pressed.

Example

REM TextArea Example
Function Textarea1_onblur()
  Msgbox Textarea1.value
End Function

Output

Related Items

EVENTS, PROPERTIES