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.
04-27-2009 04:04 PM
I have a screen with several fields in a VerticalFieldManager.
I would like a focused field to be as much near the top of the screen as possible when I call setFocus on it.
Right now, the focused field is on the bottom of the screen (as if I scrolled down until I reached it).
I want it to be on the top of the screen.
How can I do that?
Solved! Go to Solution.
04-27-2009 04:17 PM
Not sure you got what I meant.
I have a vertical field manager too big for the screen. I have a button at the top of the VFM.
When I press the button I want to "search" for a field. At the moment I use setfocus on my field, but when I do that the field is a the bottom of the screen, like this:
I want it to be like that:
How I can put it up more?
04-28-2009 11:38 AM
I tried it but thats not what I need since I don't know how many field there is going to be below.
I really just want to dynamically select a field and "put" it at the top of the screen.
04-28-2009 11:58 AM
((TitleField)mgr.getField(0)).setFocus(); // scroll it to the bottom of the screen getScreen().scroll(Screen.DOWNWARD); // make it go up but focuses the bottom most element ((TitleField)mgr.getField(0)).setFocus(); // reset the focus to the field, now at the top