I have a small problem(hopefully).
I've got a list in my listbrowser which the user can dele 1 entry from. But at that same time, i have another struct list which only holds filenames. That i want to delete the same entry from. This means that when the node has been deleted from the listbrowser list i need to get the node from the other struct list and use that to delete a local file and then just remove that line from the list.
Finding and removing the node from the listbrowser list is easy, the problem is the other list.
Also i'm scratching my head over another small thing.
When i remove an entry from the listbrowser list, i have numbers on the left column. Which shows how many entries the user have. When i remove one entry, there will be one number missing. Not sure how to change the numbers in the struct list so they are right again.
thanks...
When allocating the listbrowser node, use the LBNA_NodeSize to reserve some space behind the node and put a pointer to the other list's node there.
When you remove the nodes you can do it like this:
LBNA_UserData could be used for this purpose as well.