Retrieving items from a TGListBox

Hi Rooters
I am trying to get all the items currently loaded in a TGListBox. It was straight forward to get all the items if they were selected. However, is it possible to access the TList of all the current items in the TGListBox (selected and not selected)? I want to do that assuming I don’t know anything about the entry id field or the entry char* field. Looking at the class, it seems I should be able to do this by accessing the TGViewPort? Not sure how to use it though…

many thanks,

Hi Cristian,

See for example
If it doesn’t solve your problem, just let me know (or search the forum for more possible answers…)

Cheers, Bertrand.

That is what I am looking for! Thank you,