09-27-2009 12:18 AM
Because many text is too long to show all text. so i hope i can draw the mutli line text. or how to make the text in the listfield scrollable.
graphics.drawText(storenameture, 0, y, DrawStyle.TOP, width);
graphics.drawText(mallnameture, 0, y,DrawStyle.BOTTOM,width);
i use the DrawStyle.top and bottom . but can not show the mutli line.
09-27-2009 03:15 AM
Just change the value of "y" when you draw your second string.
It will sove your problem.
09-28-2009 03:33 AM
09-28-2009 03:34 AM
12-17-2009 12:20 AM
i m strucked with listfield i m trying to add multiple line in listfield and also want to break the line eactly how to perform the lablefield align the line properly
12-17-2009 12:33 AM
Where exactly you ahve stuck? Have you able to display the ListField on screen? Have you tried with setting the rowheight and displaying the listField?
05-28-2012 04:25 AM
Simon's code is pretty specific so I'm not sure what you don't understand. Remember that this Thread is talking about the ListField, which is a specific Field used In BlackBerry UI. If you are not using a ListField, then this code will not be applicable.
Most usual Blackberry Fields (e.g. RichTextField) will create multiple lines by themselves.
05-28-2012 06:05 AM
If you don't already know ListField, then this is not a great Thread to start the learning process. Search for easier examples.
If you know how to use ListField, I think Simon's code makes sense as it is - these are just lines you will code in your drawListRow. What specifically do you not understand?