Welcome!

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
New Developer
renuka_anil
Posts: 30
Registered: ‎11-17-2008

scroll text in fixed width of basiceditfield

 

I implemented class by extending it from BasicEditField

 

super("", txt, 200, BasicEditField.EDITABLE | BasicEditField.NO_NEWLINE | BasicEditField.FIELD_VCENTER); 

 

width of the field is fixed 150

 

 

 HorizontalFieldManager hfm = new HorizontalFieldManager(HorizontalFieldManager.HORIZONTAL_SCROLL |                 HorizontalFieldManager.NO_VERTICAL_SCROLL | HorizontalFieldManager.NO_HORIZONTAL_SCROLLBAR);

 

My text is not scrolling when i enter and the text length is greater than width of field.

 

 

Can any body tell me the solution for this.

 

Thanks

Please use plain text.
Developer
BBDeveloper
Posts: 3,951
Registered: ‎07-15-2008

Re: scroll text in fixed width of basiceditfield

Check this Article.

 

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


Use Search. "Accept Solution" If the problem is resolved.
Please use plain text.
New Developer
renuka_anil
Posts: 30
Registered: ‎11-17-2008

Re: scroll text in fixed width of basiceditfield

I dont want to display the text on next line.

 

I want the text in the same line and when the focus is on basidceditfield and if i scroll trackboll horizontally then text should be scrolled to end of line and i can edit it.

 

 

Please use plain text.
Developer
BBDeveloper
Posts: 3,951
Registered: ‎07-15-2008

Re: scroll text in fixed width of basiceditfield

Same example Instead of Vertical SCrolling try for Horizontal scrolling.

Use Search. "Accept Solution" If the problem is resolved.
Please use plain text.