Thank you for visiting the BlackBerry Support Community Forums.
BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)
BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.
"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."
- Kevin Michaluk, Founder, CrackBerry.com
Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.
08-18-2008 07:19 AM - edited 08-18-2008 12:57 PM
I wanted to know, what is the status of undocumented API's on the blackberry?
I want to use TextField.autoSelectFullText(). It works well, but isnt documented.
What are the risks? is there an alternative to using this message to select all the contents of a TextField?
Solved! Go to Solution.
08-18-2008 10:40 AM
Undocumented methods should not be used. They can change or be removed at any time.
Can you describe what you are trying to accomplish? With that we may be able to provide an alternative option.
08-18-2008 11:03 AM
Can you describe what you are trying to accomplish?
08-18-2008 11:49 AM
This can be done by calling setCursorPostion(0), then calling the select method and passing in true and then calling setCursorPostion again and passing in the text length.
08-18-2008 12:53 PM - edited 08-18-2008 01:02 PM
because it dosnt work.
it just puts the cursor at the end.
I checked it now with just fEditField.select(true);
calling this method didnt enter select mode.
08-18-2008 02:50 PM
Yes that should work. I tried it in the BlackBerry Simulator included in the version 4.5.0 BlackBerry JDE. What version are you using?
08-18-2008 02:53 PM - edited 08-18-2008 03:03 PM
i use the eclipse plugin, JDE 4.3.
for backwords compatability reasons.
i have the JDE 4.6 Beta installed, Ill check if it works with that for me.
08-18-2008 03:11 PM
I tried it in the version 4.3.0 BlackBerry JDE and it worked there as well. In my test, I was overriding the keyChar method of EditField to execute the same code if a specific key was pressed.
From where are you trying to call this code from? Does the field have focus at the time (required to select)?
08-18-2008 03:27 PM
I'm doing this within the constractor for my class.
Before calling it i call field.setFocus()
fEditField= new EditField("Name: ", strName);
and i tried on 4.6 beta and that didnt work too...
08-18-2008 03:53 PM