Websites Navigation: Airbit | Shop | m-shell.net
Languages: EN | DE

Class abgui.TextArea

is abgui.TextField is abgui.Label is abguibase.Widget
A multi-line area of editable text.

Constructor

function init(lines=4, chars=20)
Overridesabgui.TextField.init()
Initialize a new text area.
Parameters:
lines – the desired number of lines to show.
chars – the desired maximum number of characters per line to show.

Fields

modifiable Whether the text is modifiable.
wordwrap Whether words should be wrapped, or characters.

Functions

draw() [Inherited comment] Draw the label text on its background.
handled(event) [Inherited comment] Handle keystrokes and cursor positioning and selection via the pointer.
pointToPos(dx, dy) [Inherited comment] Compute the text position corresponding to certain coordinates.
setDesiredSize(lines, chars) Set the desired size.
function setDesiredSize(lines, chars)
Set the desired size.
Parameters:
lines – the desired number of lines to show.
chars – the desired maximum number of characters per line to show.
function draw()
Overridesabgui.Label.draw()
[Inherited comment] Draw the label text on its background.
function pointToPos(dx, dy)
Overridesabgui.TextField.pointToPos()
[Inherited comment] Compute the text position corresponding to certain coordinates.
Parameters:
dx – the x coordinate relative to the start of the displayed text.
dy – the y coordinate relative to the start of the displayed text.
Returns:the position at or just before the coordinates.
function handled(event)
Overridesabgui.TextField.handled()
[Inherited comment] Handle keystrokes and cursor positioning and selection via the pointer.
Parameters:
event – the event.
Returns:true if the event was handled.
mShell Home  > Documentation  > mdoc