|
-
May 11th, 2005, 09:47 AM
#1
Thread Starter
New Member
[RESOLEVD] Listview & Scrolling troubles
Hi,
I'm using a listview control to have a log screen. So every 10 seconds a new line is added, at the bottom.
Now, I know how to code that the last line added to the listview is always visible by using the ensurevisible property.
-----------------------------------------------------------------------------
Public Sub AddToLstv(ByVal lstvListView As ListView, ByVal AddItem As String, ByVal ImageNumber As Integer)
lstvListView.Items.Add(AddItem, ImageNumber)
lstvListView.EnsureVisible(lstvListView.Count - 1)
End Sub
-----------------------------------------------------------------------------
But when I try to read my log window, it is ennoying that the listview jumps down everytime a new line is added. So I always have to search again where I was reading.
So, I would like my listview having another behaviour:
- When the scrollbar is in the down position, I see every new line added & the listview scrolls automatically up.
- But when I put the scrollbar up, the listview keeps adding new lines, but doesn't jump everytime to that new line, and stays simple on the place I'm reading.
The same kind behaviour like in a chat-channel on irc, or when using a ftp-client, etc...
Anybody can help, or suggest a solution?
Thx,
djrud
Last edited by djrud; Jun 15th, 2005 at 07:15 AM.
Reason: Resolved
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|