11-27-2008 07:47 PM
Sorry if this has been covered before. I searched all through the forums, but could not figure out which component to use for this.
I am trying to create a component which is a window which displays received messages. As the messages are received, they are displayed in the window - being added to the bottom of the window.
As messages fill the window, a vertical scroll bar appears. The biggie though is that the text appearing at the bottom of the window is visible. It automatically scrolls down as text is added. Long text strings wrap. Typical chat window.
I have found MIDlet code which looks like it would work well. There is a TextArea component with an append method which adds the text to the bottom of the TextArea and is visible since the TextArea automatically scrolls down as text is added. Trouble is, I can't seem to get the MIDlet based app to run in the simulator.
This seems like a straight forward thing to do and I've done it in regular Java, but I do not see a TextArea component in the rim api's.
Can anyone point me to a component which can be used for this?
12-03-2008 11:20 AM
This sample may provide what you are looking for.
Pimp My Object: Creating a TextBox Field