10-29-2008 03:40 PM
I'm working on an applicaion that is written in J2ME and uses the Canvas class for rendering a custom UI. I have my own Textbox controls and DO NOT use the RIM or J2ME textBox's. I changed my Canvas class to derive from BlackBerryCanvas so i could get access to the VirtualKeyboardControl, this gives me the ability to show and hide the keypad like i want. but is there anyway to change the style of the keypad. for example in the (J2ME) TextBox i can set constraints field and change the keyboard layout. i want similar functionality for my class that is derived from BlackBerryCanvas.
Thanks,
10-31-2008 01:30 PM
11-03-2008 04:53 PM - edited 11-03-2008 04:55 PM
What's the String needed to retrive VirtualKeyboardControl from BlackBerryCanvas?
String vkbControlString = "???";
VirtualKeyboardControl vkvctrl = (VirtualKeyboardControl)getControl(vkbControlStrin
Thx
11-11-2008 03:23 PM
11-14-2008 10:38 AM
Thank you Mark.
I tested this and it worked as expected:
Control control = getControl("net.rim.device.api.lcdui.control.Virtu
alKeyboardControl");
if (control instanceof VirtualKeyboardControl) {
vkbControl = (VirtualKeyboardControl)control;
}
I was missing the fully qualified name of the class.