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!


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 TextEdit

Methods

Some controls use the same methods.
For examples of the same methods look here.

Method Description
TextEdit.ClearHistory()
TextEdit.Destroy()
TextEdit.GetAbsHeight()
TextEdit.GetAbsWidth()
TextEdit.GetCursorLine()
TextEdit.GetCursorPos()
TextEdit.GetHeight()
TextEdit.GetLineCount()
TextEdit.GetLineStart( p1 )
TextEdit.GetLineTop( p1 )
TextEdit.GetMaxLines()
TextEdit.GetPosition()
TextEdit.GetText()
TextEdit.GetTextSize( mode )
TextEdit.GetType()
TextEdit.GetVisibility()
TextEdit.GetWidth()
TextEdit.InsertText( text,start,end )
TextEdit.Redo()
TextEdit.Release()
TextEdit.ReplaceText( text,start,end )
TextEdit.SetBackColor( p1 )
TextEdit.SetBackGradient( p1,p2,p3,p4,p5,p6,p7 )
TextEdit.SetBackGradientRadial( p1,p2,p3,p4,p5,p6,p7 )
TextEdit.SetBackground( p1,p2 )
TextEdit.SetCursorPos( p1 )
TextEdit.SetHint( text )
TextEdit.SetHtml( p1 )
TextEdit.SetMargins( left,top,right,bottom )
TextEdit.SetOnChange( p1 )
TextEdit.SetPadding( p1,p2,p3,p4 )
TextEdit.SetPosition( p1,p2,p3,p4 )
TextEdit.SetScale( x,y )
TextEdit.SetSize( p1,p2 )
TextEdit.SetText( p1 )
TextEdit.SetTextColor( p1 )
TextEdit.SetTextSize( size,mode )
TextEdit.SetVisibility( p1 )

Options

Option Description
LeftJustify the text to the left
MonospaceShows the Text in a Monospace Font
NoSpellDisable the spell-checker
NumberDefaults to the numeric keyboard
built_in/textedit.1421091743.txt.gz · Last modified: 2015/01/13 03:42 (external edit)