Custom Component: Combobox Property
Last one in this vein.
I have a custom component. I need to add in a property that is essentially a combobox: letting the user select from a list of items. This list isn't predetermined: it can expand or contract based on certain conditions.
Essentially, I want to display a TStringList, and know which one of the objects the user has selected.
How would I do this?
I have a custom component. I need to add in a property that is essentially a combobox: letting the user select from a list of items. This list isn't predetermined: it can expand or contract based on certain conditions.
Essentially, I want to display a TStringList, and know which one of the objects the user has selected.
How would I do this?
Comments
First, I made a custom property.
Then I had to make a custom property editor
In the custom component I needed to use that class as a property in the published section
And then, in the initialization of the component, you have to register the property editor (as well as the custom component)