Keyboards and Edit Box
From iRidium Mobile Wiki
Contents
DOWNLOAD: Example of a project
Description
With iRidiumScript you can:
- Activate different types of keyboards
- Write a text from a keyboard into the EditBox item and edit the written text
Activating Keyboards
You can activate the following keyboard types in iRidium:
- Regular
- Numeric
- Smart
- Voice dialog
Receiving Data from EditBox
Using iRidiumScript you can read data written in EditBox. To do that use the following command:
Text = IR.GetItem("Page_Name").GetItem("Item_Name").Text;
- Text - the variable where the data from EditBox are to be written to
- Page_Name - the name of the page with EditBox
- Item_Name - the name of EditBox
IR.AddListener(IR.EVENT_WORK, 0, function() //Event is activated while the application is running { IR.GetItem("Page 1").GetItem("Item 2").Text = IR.GetItem("Page 1").GetItem("Item 1").Text; //The command reading data from EditBox and writing it into the item });
Reading Data from EditBox
In iRidiumScript you can read data from EditBox:
IR.AddListener(IR.EVENT_ITEM_CHANGE, IR.GetItem("Page 1").GetItem("Item 1"),function() //Event is activated at change { IR.Log(IR.GetItem("Page 1").GetItem("Item 1").Text); //The changed data is output in the log });