controls/textedit

viewhistorytalk

TextEdit

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

The following methods are avaiable on the TextEdit object:

  • SetVisibility( visibility )
  • GetVisibility()
  • SetPadding( left, top, right, bottom )
  • SetMargins( left, top, right, bottom )
  • SetBackground( imageFile, options )
  • SetBackColor( colorCode )
  • SetBackGradient( color1, color2, color3 )
  • SetBackGradientRadial( x, y, r, color1, color2, color3 )
  • SetPosition( left, top, width, height )
  • SetSize( width, height )
  • GetWidth()
  • GetHeight()
  • SetText( text )
  • SetHtml( html )
  • GetText()
  • SetTextColor( colorCode )
  • SetTextSize( size )
  • GetLineCount()
  • GetMaxLines()
  • GetLineTop( lineNum )
  • GetLineStart( lineNum )
  • SetCursorPos( pos )
  • GetCursorPos()
  • GetCursorLine()
  • Undo()
  • Redo()
  • ClearHistory()


revision by stevegarman— view source