Jump to content

gwin list update


viji s

Recommended Posts

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

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

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
×
×
  • Create New...