06-25-2012 12:12 PM
I am probably missing something obvious, but I am unable to get 'softKeyboardType="number"' to work. In fact what ever type I choose I get the normal soft keyboard on my Playbook. I am using it with an ' TextInput' and I am using import statements, ie. import 'qnx.ui.text.KeyboardType;' and 'qnx.fuse.ui.text.TextInput;' although I am not sure if I should use them. I use Flash Builder 4.6. Any help would be much appreciated. Cheers Tony
06-25-2012 01:10 PM
06-26-2012 05:29 AM
Hi jtegen, thanks for that. I did not think you had to use an event to change the soft keyboard, I will try that. Do you know which event is first triggered to bring the soft keyboard up whenthe text input is touched by the user. Cheers Tony.
06-26-2012 07:41 AM
06-26-2012 11:31 AM
Hi again jtegen, I still cant get the keyboard to show different views,
I have done some quick code to test, but I am obviousley doing something wrong. Most information I have seen says it should work by using '<s:TextInput id="KeyBoardInput" x="10" y="4" softKeyboardType="number"/>'
Code:
<?xml version="1.0" encoding="utf-8"?>
<s:View xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark" title="HomeView"
viewActivate="view1_viewActivateHandler(event)">
<fx
cript>
<![CDATA[
import flash.text.SoftKeyboardType;
import qnx.fuse.ui.text.KeyboardType;
import qnx.ui.text.KeyboardType;
import spark.events.ViewNavigatorEvent;
import flash.ui.KeyboardType;
protected function view1_viewActivateHandler(event:Event):void
{
/* KeyBoardInput.softKeyboardType = qnx.fuse.ui.text.KeyboardType.PIN; */
KeyBoardInput.softKeyboardType = flash.ui.KeyboardType.KEYPAD;
KeyBoardInput.softKeyboardType = qnx.fuse.ui.text.KeyboardType.PIN;
}
]]>
</fx
cript>
<fx
eclarations>
<!-- Place non-visual elements (e.g., services, value objects) here -->
</fx
eclarations>
<s:TextInput id="KeyBoardInput" x="10" y="4" softKeyboardType="number"/>
</s:View>
I am using the playbook V2.0.1.358
Thanks for taking the time to look.
Tony
06-26-2012 11:54 AM