multiple lines in a textfield

3 messages - 1244 views

Hi ,

 

I found that the text entered in the textfield is being displayed in a single line even though i increase the length of the textfield  .

As soon as the text exceeds the width of the textfield the text starts scrolling horizontally(seems to be a ticker) in the textfield .

Now i need to display the text in multiple lines( the text should wrap out as soon as it reaches the textfield width ).

Can some one help me solving my issue...

I have tried to split the text entered when a enter key is pressed and iam able to do that with a ease(showed the splitted text in the

system print) , then i added the text to display.

My problem is that it is not displaying the splitted text instead it is giving a space when i press the enter key.

 

Please give me a way to proceed.

regards,

venky

 

 

in Kuix Textfields are editable onlyt through j2me native TextBox. And multiline is implemented there by the mobile manufacturer, that why we'd prefer to keep textfield in one line.

But you can write a new custom widget that extends TextArea. Override the isFocusable() function to return true. Implements the J2ME native TextBox show/hide as it's done in the textfield...

Hi tofu ,

thanks for the reply..

Can you be a little bit clear in your explanation.

Please help solve the issue.Actually i have made the text to enter directly in the text by overiding the methods in the text field widget.

I am not using the textbox anymore . So please give me a possible solution to be implemented .

 

regards,

venky.