User Tools

Site Tools


Sidebar

Privacy Policy

News

Version 2.50 is out since Jan 1st 2022


Frequently Asked Questions


Namespaces

Note for contributors

If you wish to create a new page in the DroidScript wiki, please click on the most appropriate namespace above and follow the notes for contributors there.

Because of spam, it has been necessary to add a CAPTCHA to the registration form and the save option for editing pages. You will not need to prove you are human if you are logged in, so please register.

Please feel free to improve any existing page, as well as adding new pages to increase the sum of public knowledge about DroidScript.

Formatting Syntax

built_in:text

This is an old revision of the document!


Table of Contents

Text control

Create

Create Text objects using the CreateText method of the app object:

txt = app.CreateText( text, width, height, options );

You can use the “Multiline” option to allow multi-line text and the “Left” or “Right” options to align the text. The default is single line centered text.

Use the SetText and GetText functions of the Text object to set and get it's text.

Methods

Method Description
txt.GetHeight
txt.GetLineCount
txt.GetLineStart
txt.GetLineTop
txt.GetMaxLines
txt.Gettxt
txt.GetVisibility
txt.GetWidth
txt.Release
txt.SetBackColor
txt.SetBackGradient
txt.SetBackGradientRadial
txt.SetBackground
txt.SetHtml
txt.SetMargins
txt.SetOnLongTouch
txt.SetOnTouch
txt.SetOnTouchDown
txt.SetOnTouchMove
txt.SetOnTouchUp
txt.SetPadding
txt.SetPosition
txt.SetSize
txt.Settxt
txt.SettxtColor
txt.SettxtSize
txt.SetTouchable
built_in/text.1410978042.txt.gz · Last modified: 2014/09/18 02:20 (external edit)