Welcome to the SRP Forum! Please refer to the SRP Forum FAQ post if you have any questions regarding how the forum works.
Scrolling a List Box automatically
I have a list box in an OI form that is constantly getting new rows of text that I want to be visible as it's getting added. Once it reaches the bottom it continues to get added however I'm not able to see the newly added text unless I scroll to the bottom when it's finished running. How would I go about automatically scrolling this list box to the last item that got added? In other words, I want it to work like a command prompt where it shows you the last values added up until the input line of the directory that we're in (in my case the last line should be the last value that got added).
So far, I've tried using the code : scrollTest = Send_Message(@window: ".LBX_PROGRESS", "SCROLL", 0, -10) and using Get and Set properties for the VPOSITION that as each new line gets added.
Thanks!
So far, I've tried using the code : scrollTest = Send_Message(@window: ".LBX_PROGRESS", "SCROLL", 0, -10) and using Get and Set properties for the VPOSITION that as each new line gets added.
Thanks!
Comments
For i = 1 to 1000 Send_Message(@Window:".LISTBOX", "INSERT", -1, "Item ":i) Set_Property(@Window:".LISTBOX", "TOPPOS", i) Next i