User Tools

Site Tools


built_in:text

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

built_in:text [2014/12/05 13:29]
162.252.85.172 [Methods]
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: 
  
-<code>txt = app.CreateText( text, width, height, options );</code> 
-You can use the **"Multiline"** option to allow multi-line text and the **"Left"** or **"Right"** options to align the text. The default is single line centered text. 
- 
-Use the SetText and GetText functions of the Text object to set and get it's text. 
-===== Methods ===== 
-^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( p1 ) | | 
-|Text.SetBackGradient( p1,p2,p3,p4,p5,p6,p7 ) | | 
-|Text.SetBackGradientRadial( p1,p2,p3,p4,p5,p6,p7 ) | | 
-|Text.SetBackground( p1,p2 ) | | 
-|Text.SetEllipsize( mode ) | | 
-|Text.SetFontFile( file ) | | 
-|Text.SetHtml( html ) | | 
-|Text.SetMargins( left,top,right,bottom ) | | 
-|Text.SetOnLongTouch( callback ) | | 
-|Text.SetOnTouch( callback ) | | 
-|Text.SetOnTouchDown( callback ) | | 
-|Text.SetOnTouchMove( callback ) | | 
-|Text.SetOnTouchUp( callback ) | | 
-|Text.SetPadding( p1,p2,p3,p4 ) | | 
-|Text.SetPosition( p1,p2,p3,p4 ) | | 
-|Text.SetScale( x,y ) | | 
-|Text.SetSize( p1,p2 ) | | 
-|Text.SetText( text ) | | 
-|Text.SetTextColor( color ) | | 
-|Text.SetTextShadow( radius,dx,dy,color ) | | 
-|Text.SetTextSize( size,mode ) | | 
-|Text.SetTouchable( touchable ) | | 
-|Text.SetVisibility( HideShow ) | | 
built_in/text.txt ยท Last modified: 2019/06/22 01:01 (external edit)