Please forgive what is probably a dumb question with a simple answer, but I've searched these forums and couldn't find the answer...
How do I get an xCustomListView to show the very last line added? I have tried using
clv1.ScrollToItem(clv1.Size-1)
and
clv1.JumpToItem(clv1.Size-1)
but these only show
close to the last line of text added, not
actually the last line.
The ".size" parameter is the total number of items, and is a zero-based index, right? Because jumping to ".size" instead of ".size-1" causes an error.
What am I doing wrong?
For whatever it's worth, I am using the xCustomListView to display incoming messages in a chat application. I used xCLV instead of a regular Listview because the messages can be 3 or more lines of text on the screen and the xCLV automatically wraps the entire message into multiple lines.
If there is a better way to display the incoming messages besides using a Listview or xCustomListview I would be delighted to hear of it! Or how to ensure the last entry in the CLV is visible?
Thanks for any help you can give me.