This shows you the differences between two versions of the page.
built_in:textedit [2015/02/09 09:24] octazid [Options] |
built_in:textedit [2016/04/30 06:35] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== TextEdit control ====== | ||
- | ===== Create ===== | ||
- | Create TextEdit objects using the CreateTextEdit method of the app object: | ||
- | < | ||
- | 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, | ||
- | |TextEdit.Redo() | | | ||
- | |TextEdit.Release() | | | ||
- | |TextEdit.ReplaceText( text, | ||
- | |TextEdit.SetBackColor( color ) | | | ||
- | |TextEdit.SetBackGradient( p1, | ||
- | |TextEdit.SetBackGradientRadial( p1, | ||
- | |TextEdit.SetBackground( p1,p2 ) | | | ||
- | |TextEdit.SetCursorPos( number ) | | | ||
- | |TextEdit.SetHint( text ) | | | ||
- | |TextEdit.SetHtml( text ) | | | ||
- | |TextEdit.SetMargins( left, | ||
- | |TextEdit.SetOnChange( callback ) | | | ||
- | |TextEdit.SetPadding( p1,p2,p3,p4 ) | | | ||
- | |TextEdit.SetPosition( p1,p2,p3,p4 ) | | | ||
- | |TextEdit.SetScale( x,y ) | | | ||
- | |TextEdit.SetSize( width,hight ) | | | ||
- | |TextEdit.SetText( text ) | | | ||
- | |TextEdit.SetTextColor( color ) | | | ||
- | |TextEdit.SetTextSize( size,mode ) | | | ||
- | |TextEdit.SetVisibility( ShowHide ) | | | ||
- | |TextEdit.Undo() | | | ||
- | |||
- | ===== Options ===== | ||
- | |||
- | ^Option ^Description ^ | ||
- | |AutoSelect|Select all Text if user enter the Textedit| | ||
- | |Center|Justify the text in the middle| | ||
- | |Left|Justify the text to the left| | ||
- | |Monospace|Shows the Text in a Monospace Font| | ||
- | |NoSpell|Disable the spell-checker| | ||
- | |Number|Defaults to the numeric keyboard| | ||
- | |NoKeyboard|Shows no Keyboard| | ||
- | |ReadOnly|You cant change the Text| | ||
- | |Right|Justify the text to the right| |