04-14-2012 05:00 AM
Hi every one,
I have a problem in while setting the ReturnkeyType of the TextInput, I am changing default enter symbol to other like Done, Search etc.., its working fine in the simulator but in the device its showing default enter symbol, am I missing any thing?, can any one tell me the solution.
04-14-2012 08:38 AM
04-14-2012 10:02 PM
Set it with .returnKeyLabel. String value.
import qnx.fuse.ui.text.TextInput;
suckaFish.prompt = "One fish two fish."; suckaFish.setPosition(15, 15); suckaFish.width = 250; suckaFish.returnKeyLabel = "Create"; addChild(suckaFish);
04-15-2012 01:41 AM
import qnx.ui.text.TextInput;
private var searchInput:TextInput;
searchInput = new TextInput(); searchInput.returnKeyType = ReturnKeyType.DONE;
I am using the above code
04-15-2012 10:37 AM
Then you'll need to also import:
import qnx.ui.text.ReturnKeyType;
You don't have to use ReturnKeyType.DONE if you want to use your own. For instance, I have a return key set to "Create". Just:
searchInput.returnKeyType = "Search";
04-27-2012 07:39 PM
returnKeyType
and Label do not seem to be working in 2.0.1
FB 4.6
using qnx.fuse.ui.text.* package
04-27-2012 11:05 PM
Check your imports:
import qnx.fuse.ui.text.TextInput; import qnx.fuse.ui.text.KeyboardType;
var fishy:TextInput = new TextInput(); fishy.returnKeyLabel = "Trout"; fishy.softKeyboardType = KeyboardType.EMAIL; fishy.setPosition(100, 100); addChild(fishy);