Welcome to the Official BlackBerry® Support Community Forums. This is your resource to discuss support topics with your peers, and learn from each other. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Java Development

Reply
Developer
trainee
Posts: 235
Registered: 05-07-2010
My Carrier: Internet

help for scrollable textboxfield?

Hi,

 

i have just make scrollable textboxfield from following link.

http://na.blackberry.com/eng/devjournals/resources/journals/jul_2005/creating_textbox_field.jsp

 

but the problem is that when i type text greater than width of textbox then the focus moves to downward and i

am not able to see what i am typing.

 

so can anyone suggest me how i can do focus with the same height.

 

finally: i want that when the length of text is greater than  width of textbox then the text should be move to upper part and focus remains with same row.

___________________________________________________
please press kudos(star button on left) if this post is helpful to you
"Accept as solution" if your query has been resolved.@hitendra
_________________________________________________
Please use plain text.
Developer
arkadyz
Posts: 2,146
Registered: 07-08-2009
My Carrier: various

Re: help for scrollable textboxfield?

Oh, no - don't use that old article as an example!  It has a number of problems, including an infinite loop of painting and invalidating, which eats CPU like crazy (and therefore drains battery fast).

 

Use this instead - it was created as a fix to that article:

TextBoxField revisited

Be sure to read the comments as well - they contain ideas on enhancing the functionality.

----------------------------------------------------------
please click 'Accept Solution' on posts that provide the solution to the question you've posted. Don't say "Thanks", press 'Like' button instead!
Please use plain text.