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:textedit

This is an old revision of the document!


Table of Contents

TextEdit control

Create

Create TextEdit objects using the CreateTextEdit method of the app object:

edt = app.CreateTextEdit( text, width, height, options );

You can use the SetOnChange method of the TextEdit to set the name of a function you want to be called when a the text is changed.

Use the SetText and GetText functions to set and get the text in the TextEd

Methods

Method Description
edt.ClearHistory
edt.GetCursorLine
edt.GetCursorPos
edt.GetHeight
edt.GetLineCount
edt.GetLineStart
edt.GetLineTop
edt.GetMaxLines
edt.GetText
edt.GetVisibility
edt.GetWidth
edt.Redo
edt.Release
edt.SetBackColor
edt.SetBackGradient
edt.SetBackGradientRadial
edt.SetBackground
edt.SetCursorPos
edt.SetHtml
edt.SetMargins
edt.SetOnChange
edt.SetPadding
edt.SetPosition
edt.SetSize
edt.SetText
edt.SetTextColor
edt.SetTextSize
edt.SetVisibility
edt.Undo
built_in/textedit.1410980499.txt.gz · Last modified: 2014/09/18 03:01 (external edit)