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.

inside custom component

Java Development

Reply
Developer
gsk_56
Posts: 25
Registered: ‎09-08-2008
My Device: Not Specified
Accepted Solution

Problem with EditField ?

Hi,

I have created a EditField and iam trying to give a Rectangular shape to that,  but the problem is while typing cusor is coming new line and it is  increasing the textfield width.  please find the image below.  I am expecting that letters should move to leftwards not to downwards. For example,  in Simulator browser there is a TextBox it behaving like this.  I added rectangle to textfiled I think it should be to the MainScreen.  Please provide any helpful code snippet for the same.  Advanced thanks

edit = new EditField("", "",50, EditField.FILTER_DEFAULT | EditField.NO_NEWLINE) { protected void layout(int maxWidth, int maxHeight) { super.layout(137, this.getHeight()); setExtent(137, this.getHeight()); } public void paint( Graphics graphics ) { graphics.setColor(Color.RED); System.out.println("!!!!!!!!!!!!!!!!!Width :: "+getWidth()); graphics.setColor(Color.BLACK); super.paint(graphics); } };

 

Please use plain text.
Developer
peter_strange
Posts: 19,601
Registered: ‎07-14-2008
My Device: Not Specified

Re: Problem with EditField ?

Please use plain text.
Developer
gsk_56
Posts: 25
Registered: ‎09-08-2008
My Device: Not Specified

Re: Problem with EditField ?

Hi thanks for your reply.

 

I gone through that thread.  MSohm was mentioned a link for an article. while opening this link it is forwarding to

 

" http://na.blackberry.com/404error.jsp " this error page. From this how will i search below article.

 

 

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

Please use plain text.
Developer
peter_strange
Posts: 19,601
Registered: ‎07-14-2008
My Device: Not Specified

Re: Problem with EditField ?

With the recent restructure of the web site, Rim have moved the Journals.  Try here:

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

Please use plain text.
Developer
gsk_56
Posts: 25
Registered: ‎09-08-2008
My Device: Not Specified

Re: Problem with EditField ?

Thanks alot Peter_strange.
Please use plain text.