User Tools

Site Tools


built_in:spinner

Differences

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

Link to this comparison view

built_in:spinner [2015/01/07 09:51]
octazid [Methods]
built_in:spinner [2016/06/04 01:02]
Line 1: Line 1:
-====== Spinner control ====== 
- 
-===== Methods ===== 
-Some controls use the same methods.\\ 
-For examples of the **[[same methods]]** look here. 
-^Method ^Description ^ 
-|Spinner.Destroy() | | 
-|Spinner.GetAbsHeight() | | 
-|Spinner.GetAbsWidth() | | 
-|Spinner.GetHeight() | | 
-|Spinner.GetPosition() | | 
-|Spinner.GetText() | | 
-|Spinner.GetTextSize( mode ) | | 
-|Spinner.GetType() | | 
-|Spinner.GetVisibility() | | 
-|Spinner.GetWidth() | | 
-|Spinner.Release() | | 
-|Spinner.SelectItem( p1 ) | See the info| 
-|Spinner.SetBackColor( p1 ) | | 
-|Spinner.SetBackGradient( p1,p2,p3,p4,p5,p6,p7 ) | | 
-|Spinner.SetBackGradientRadial( p1,p2,p3,p4,p5,p6,p7 ) | | 
-|Spinner.SetBackground( p1,p2 ) | | 
-|Spinner.SetList( p1, p2 ) | | 
-|Spinner.SetMargins( left,top,right,bottom ) | | 
-|Spinner.SetOnChange( p1 ) | | 
-|Spinner.SetOnTouch( p1 ) | | 
-|Spinner.SetPadding( p1,p2,p3,p4 ) | | 
-|Spinner.SetPosition( p1,p2,p3,p4 ) | | 
-|Spinner.SetScale( x,y ) | | 
-|Spinner.SetSize( p1,p2 ) | | 
-|Spinner.SetText( p1 ) | | 
-|Spinner.SetTextColor( p1 ) | | 
-|Spinner.SetTextSize( size,mode ) | | 
-|Spinner.SetVisibility( p1 ) | | 
- 
-===== Info to Version 1.15 and before ===== 
-If the SelectItem method is called before the spinner and the layout is added to the app-object the OnChange event of the spinner is fired only after the second manual selection change.  
- 
-<code JavaScript spinnerSelectItem.js> 
-function OnStart() 
-{ 
-  lay = app.CreateLayout( "Linear", "VCenter,FillXY" ); 
- 
-  spin = app.CreateSpinner( "Bilbo,Frodo,Gandalf", 0.4 ); 
-  spin.SetOnChange( ShowSelection ); 
-  //spin.SelectItem( "Frodo" ); Dont write it here! 
-  lay.AddChild( spin ); 
- 
-  app.AddLayout( lay ); 
-  //Select the Item after app.AddLayout or 
-  //it will not work right! 
-  spin.SelectItem( "Frodo" ); 
-} 
- 
- 
-function ShowSelection( item ) 
-{ 
-  app.ShowPopup( "Selected = " + item ); 
-} 
-</code> 
  
built_in/spinner.txt ยท Last modified: 2016/06/04 01:02 (external edit)