This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
built_in:textedit [2015/04/28 02:43] 50.135.17.185 [Table] Fixed Simple Spelling Error |
built_in:textedit [2016/04/29 22:32] 58.96.146.120 [Methods] |
||
---|---|---|---|
Line 52: | Line 52: | ||
Some controls use the same methods.\\ | Some controls use the same methods.\\ | ||
For examples of the **[[same methods]]** look here. | For examples of the **[[same methods]]** look here. | ||
- | ^Method ^Description ^ | + | ^ Method |
- | |TextEdit.ClearHistory() | | | + | | TextEdit.ClearHistory() |
- | |TextEdit.Destroy() | | | + | | TextEdit.Destroy() |
- | |TextEdit.GetAbsHeight() | | | + | | TextEdit.GetAbsHeight() |
- | |TextEdit.GetAbsWidth() | | | + | | TextEdit.GetAbsWidth() |
- | |TextEdit.GetCursorLine() | Returns the line with the Cursor as number| | + | | TextEdit.GetCursorLine() |
- | |TextEdit.GetCursorPos() | Returns the position of the Cursor as number| | + | | TextEdit.GetCursorPos() |
- | |TextEdit.GetHtml()| Returns the Text of a Textedit as Html \\ use this if the contol has a Html option| | + | | TextEdit.GetHtml() |
- | |TextEdit.GetHeight() | | | + | | TextEdit.GetHeight() |
- | |TextEdit.GetLineCount() | Returns the count of a line in the Textedit| | + | | TextEdit.GetLineCount() |
- | |TextEdit.GetLineStart( lineNum ) | Returns the position of the start of a line as number| | + | | TextEdit.GetLineStart( lineNum ) |
- | |TextEdit.GetLineTop( lineNum ) | | | + | | TextEdit.GetLineTop( lineNum ) |
- | |TextEdit.GetMaxLines() | Returns the count of all lines| | + | | TextEdit.GetMaxLines() |
- | |TextEdit.GetPosition() | | | + | | TextEdit.GetPosition() |
- | |TextEdit.GetSelectedText()| Returns the selected Text| | + | | TextEdit.GetSelectedText() |
- | |TextEdit.GetSelectionEnd()| Returns the endposition of the selected Text as number| | + | | TextEdit.GetSelectionEnd() |
- | |TextEdit.GetSelectionStart()| Returns the startposition of the selected text as number| | + | | TextEdit.GetSelectionStart() |
- | |TextEdit.GetText() | Returns the Text of the Textedit | | + | | TextEdit.GetText() |
- | |TextEdit.GetTextSize( mode ) | Returns the Textsize of the Text | | + | | TextEdit.GetTextSize( mode ) |
- | |TextEdit.GetType() | | | + | | TextEdit.GetType() |
- | |TextEdit.GetVisibility() | | | + | | TextEdit.GetVisibility() |
- | |TextEdit.GetWidth() | | | + | | TextEdit.GetWidth() |
- | |TextEdit.InsertText( text, | + | | TextEdit.InsertText( text, |
- | |TextEdit.Redo() | | | + | | TextEdit.Redo() |
- | |TextEdit.Release() | | | + | | TextEdit.Release() |
- | |TextEdit.ReplaceText( text, | + | | TextEdit.ReplaceText( text, |
- | |TextEdit.SetBackColor( color ) | | | + | | TextEdit.SetBackColor( color ) |
- | |TextEdit.SetBackGradient( color1, | + | | TextEdit.SetBackGradient( color1, |
- | |TextEdit.SetBackGradientRadial( x, | + | | TextEdit.SetBackGradientRadial( x, |
- | |TextEdit.SetBackground( imagefile, | + | | TextEdit.SetBackground( imagefile, |
- | |TextEdit.SetCursorPos( number ) | | | + | | TextEdit.SetCursorPos( number ) | |
- | |TextEdit.SetHint( text ) | | | + | | TextEdit.SetHint( text ) |
- | |TextEdit.SetHtml( text ) | | | + | | TextEdit.SetHtml( text ) |
- | |TextEdit.SetMargins( left, | + | | TextEdit.SetMargins( left, |
- | |TextEdit.SetOnChange( callback ) | Starts if the user change the Text in the Textedit | | + | | TextEdit.SetOnChange( callback ) |
- | |TextEdit.SetOnTouch( callback )| Starts if the user enter the Textedit | | + | | TextEdit.SetOnEnter( callback )|As of ver1.34 This disables enter key and fires callback |
- | |TextEdit.SetPadding( left, | + | | TextEdit.SetOnTouch( callback ) | Starts if the user enter the Textedit |
- | |TextEdit.SetPosition( left, | + | | TextEdit.SetPadding( left, |
- | |TextEdit.SetScale( x,y ) | | | + | | TextEdit.SetPosition( left, |
- | |TextEdit.SetSelection( start,stop ) | Select Text \\ start and stop are the positions in the text as number| | + | | TextEdit.SetScale( x,y ) |
- | |TextEdit.SetSize( width, | + | | TextEdit.SetSelection( start,stop ) | Select Text \\ start and stop are the positions in the text as number |
- | |TextEdit.SetText( text ) | | | + | | TextEdit.SetSize( width, |
- | |TextEdit.SetTextColor( color ) | | | + | | TextEdit.SetText( text ) |
- | |TextEdit.SetTextSize( size,mode ) | | | + | | TextEdit.SetTextColor( color ) |
- | |TextEdit.SetVisibility( ShowHide ) | | | + | | TextEdit.SetTextSize( size,mode ) | |
- | |TextEdit.Undo() | | | + | | TextEdit.SetVisibility( ShowHide ) |
+ | | TextEdit.Undo() | ||
===== Options ===== | ===== Options ===== | ||
- | ^ Option | + | ^ Option |
- | | AutoSelect | + | | AutoSelect |
- | | Center | + | | AutoSize |
- | | Left | Justify the text to the left | | + | | Bold | Write bold text |
- | | Monospace | + | | Center |
- | | NoSpell | + | | Extract |
- | | Number | + | | Left | Justify the text to the left |
- | | NoKeyboard | + | | Monospace |
- | | ReadOnly | + | | NoSpell |
- | | Right | Justify the text to the right | + | | Number |
- | | SingleLine | + | | NoKeyboard |
+ | | ReadOnly | ||
+ | | Right | Justify the text to the right | | ||
+ | | SingleLine |