02-08-2011 04:06 PM
Would you know of a way to prevent the virtual keyboard from popping up when a user clicks / taps on a TextField that will get auto-populated with different values based on the number of clicks?
02-08-2011 04:21 PM
currently we do not officially have control over the virtual keyboard. im sure in the future that feature will be available. that being said there is an unofficial approach posted a few weeks back by TheDarkin1978. by being unofficial there is a chance this access might not exist in the future. here is a link to the thread:
hope that helps. good luck!
02-08-2011 04:38 PM
just a follow up, here is a possible work around depending on how you want to go about things. the following code usings the TextInput object but disables any use of it (doesnt set the state to disable though). so you can update it and what not but it will never pop up the keyboard nor will the user be able to edit the text input.
public class TextInputTest extends Sprite
private var textInput:TextInput;
public function TextInputTest()
// support autoOrients
stage.align = StageAlign.TOP_LEFT;
stage.scaleMode = StageScaleMode.NO_SCALE;
textInput = new TextInput();
textInput.mouseChildren = false;
private function trickery(e:MouseEvent):void
* do stuff here
e.currentTarget.text = "Show some text here";
Hope that helps a little. good luck!
02-08-2011 05:15 PM
You could also fake it by putting a MovieClip/Sprite above the textinput/textfield and having that catch the clicks for you (set it's alpha to 0.0, obviously).
Just throwing it out there!
02-08-2011 05:35 PM
Rossman wrote:You could also fake it by putting a MovieClip/Sprite above the textinput/textfield and having that catch the clicks for you (set it's alpha to 0.0, obviously).
That is actually what I ended up doing except I set the alpha to 0.001.
02-08-2011 05:46 PM
I haven't used the QNX SDK (just Flex Hero atm), but does it not have an editable boolean property?
02-08-2011 05:49 PM
@killerspaz: unfortunately the QNX TextInput class doesnt have that property (yet). the closest thing that comes to it is the enabled property. but setting that to true changes the look of the object (unless you edit the skin).