This shows you the differences between two versions of the page.
built_in:text [2015/02/15 16:02] octazid Add Options |
built_in:text [2019/06/22 01:01] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Text control ====== | ||
- | ===== Create ===== | ||
- | Create Text objects using the **CreateText** method of the [[app]] object: | ||
- | |||
- | < | ||
- | You can use the **" | ||
- | |||
- | Use the SetText and GetText functions of the Text object to set and get it's text. | ||
- | ===== Methods ===== | ||
- | Some controls use the same methods.\\ | ||
- | For examples of the **[[same methods]]** look here. | ||
- | ^Method ^Description ^ | ||
- | |Text.Destroy() | | | ||
- | |Text.GetAbsHeight() | | | ||
- | |Text.GetAbsWidth() | | | ||
- | |Text.GetHeight() | | | ||
- | |Text.GetLineCount() | | | ||
- | |Text.GetLineStart( line ) | | | ||
- | |Text.GetLineTop( line ) | | | ||
- | |Text.GetMaxLines() | | | ||
- | |Text.GetPosition() | | | ||
- | |Text.GetText() | | | ||
- | |Text.GetTextSize( mode ) | | | ||
- | |Text.GetType() | | | ||
- | |Text.GetVisibility() | | | ||
- | |Text.GetWidth() | | | ||
- | |Text.Release() | | | ||
- | |Text.SetBackColor( color ) | | | ||
- | |Text.SetBackGradient( color1, | ||
- | |Text.SetBackGradientRadial( x, | ||
- | |Text.SetBackground( imagefile, | ||
- | |Text.SetEllipsize( mode ) | | | ||
- | |Text.SetFontFile( file ) | | | ||
- | |Text.SetHtml( html ) | | | ||
- | |Text.SetMargins( left, | ||
- | |Text.SetOnLongTouch( callback ) | | | ||
- | |Text.SetOnTouch( callback ) | | | ||
- | |Text.SetOnTouchDown( callback ) | | | ||
- | |Text.SetOnTouchMove( callback ) | | | ||
- | |Text.SetOnTouchUp( callback ) | | | ||
- | |Text.SetPadding( left, | ||
- | |Text.SetPosition( left, | ||
- | |Text.SetScale( x,y ) | | | ||
- | |Text.SetSize( width, | ||
- | |Text.SetText( text ) | | | ||
- | |Text.SetTextColor( color ) | | | ||
- | |Text.SetTextShadow( radius, | ||
- | |Text.SetTextSize( size,mode ) | | | ||
- | |Text.SetTouchable( touchable ) | | | ||
- | |Text.SetVisibility( HideShow ) | | | ||
- | |||
- | ===== Options ===== | ||
- | |||
- | ^Option ^Description ^ | ||
- | |FontAwesome|Use this to display Icons \\ from this inbuilt font| | ||
- | |Left| | | ||
- | |Multiline| | | ||
- | |Right| | | ||