Sign in to follow this  
Followers 0
wictro

GUICtrlCreateListView, can i change scroll direction?

3 posts in this topic

I have made a bot that controls another software, and i added a info-window to the bot-GUI

the problem is as i do:

For $loop = 20 to 1 Step -1

_GUICtrlListView_AddItem ($liststatus, "Event 1", 0)

Next

now when the window gets full, a scrollbar appears, and the new events go to the part unseen.

How could i get the new events to appear in visible part or viewwindow (preferably top row)

thanks,

wic

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Try using InsertItem instead, and just insert to the first row of the listview:

For $loop = 0 to 20
_GUICtrlListView_InsertItem ($liststatus, "Event " & $loop, 0, 0)
Next
Edited by covaks

Share this post


Link to post
Share on other sites

Try using InsertItem instead, and just insert to the first row of the listview:

For $loop = 0 to 20
_GUICtrlListView_InsertItem ($liststatus, "Event " & $loop, 0, 0)
Next
thanks! this sure makes my debugging a lot easier!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0