DroidScript wiki

(was AndroidScript) unofficial documentation by the community

User Tools

Site Tools


sample_code:img_toggle_button

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
sample_code:img_toggle_button [2014/12/06 21:15]
stevegarman
sample_code:img_toggle_button [2015/01/13 09:55] (current)
stevegarman [The code] fix code formatting
Line 61: Line 61:
   }     }  
   var  obj  =  app.CreateImage(null,​ img1.GetWidth(),​ img1.GetHeight());​     var  obj  =  app.CreateImage(null,​ img1.GetWidth(),​ img1.GetHeight());​  
-  obj.SetImage(img1)   obj.Toggle  =  false;​   +  obj.SetImage(img1)
-  obj.imgFalse  =  img1   ​obj.imgTrue  =  img2   +  ​obj.Toggle  =  false;​   
-  return  obj+  obj.imgFalse  =  img1; 
 +  ​obj.imgTrue  =  img2;   
 +  return  obj;
 } }
 </​code>​ </​code>​
sample_code/img_toggle_button.txt · Last modified: 2015/01/13 09:55 by stevegarman