viji s Posted April 14, 2018 Report Share Posted April 14, 2018 Hello, I am using gwinlist . Everytime when I update the list it gets added up downwards. i.e I want the complete queue to move downwards and add the new entry on the top list. i.e each new entry should be the 1st in the list. please, suggest me how can i do this. awaiting for your response, thanks and regards viji Link to comment Share on other sites More sharing options...
Joel Bodenmann Posted April 14, 2018 Report Share Posted April 14, 2018 The current GWIN list widget API doesn't provide any means to achieve this. If you want that behavior you either have to add a function to the GWIN list widget which allows you to specify the insertion position (which might require a few rewrites as the list uses a very light-weight internal list, but I don't remember the details) or you simply clear the entire list and add all items again - starting with the new one. Keep in mind that you should disable the list rendering during that period to keep things smooth. Link to comment Share on other sites More sharing options...
inmarket Posted April 15, 2018 Report Share Posted April 15, 2018 Only being able to insert into a list widget at the end is not uncommon eg Win32. The correct method is to clear the list and re-add the items as per Joel's post above. Link to comment Share on other sites More sharing options...
viji s Posted April 17, 2018 Author Report Share Posted April 17, 2018 Thanks Joel Sir your valuable suggetion Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now