Skip to content

Getting user selected item from Listbox? #183

@willasm

Description

@willasm

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions