Is there any method of getting the users selection from a listbox? I have looked through the source in fpg_listbox.pas and there does not appear to be any function like GetSelectedItem or anything similar. I have tried using OnChange which works fine for the notification but it only sends the Sender TObject and not the the item index of the changed item. I have tried looping through all the items and I can get the text for each item but there also does not seem to be any method for getting the state of the item, selected or not.
Any suggestions would be appreciated, Thank you, William
Is there any method of getting the users selection from a listbox? I have looked through the source in
fpg_listbox.pasand there does not appear to be any function like GetSelectedItem or anything similar. I have tried using OnChange which works fine for the notification but it only sends the Sender TObject and not the the item index of the changed item. I have tried looping through all the items and I can get the text for each item but there also does not seem to be any method for getting the state of the item, selected or not.Any suggestions would be appreciated, Thank you, William