DroidScript wiki

(was AndroidScript) unofficial documentation by the community

User Tools

Site Tools


built_in:checkboxes

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
built_in:checkboxes [2015/03/08 10:40]
octazid [Description]
built_in:checkboxes [2015/11/02 11:05] (current)
octazid [Description] correct link
Line 4: Line 4:
  
 ===== Description ===== ===== Description =====
-Create CheckBoxes using the **CreateCheckBox** method of the [[built_in:​app|[[built_in:app|app]]]] object:+Create CheckBoxes using the **CreateCheckBox** method of the [[built_in:​app|app]] object:
 <​code>​ chk = app.CreateCheckBox( text );</​code>​ <​code>​ chk = app.CreateCheckBox( text );</​code>​
 Use the **SetOnTouch** method of the CheckBox object to set the name of a function you want to be called when the CheckBox is touched. You can read the '​isChecked'​ parameter in your callback function to get the state of the CheckBox. Use the **SetOnTouch** method of the CheckBox object to set the name of a function you want to be called when the CheckBox is touched. You can read the '​isChecked'​ parameter in your callback function to get the state of the CheckBox.
built_in/checkboxes.txt ยท Last modified: 2015/11/02 11:05 by octazid