Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2024-04

Enter information or select one from a list

1 message · 1 person ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Arí Ricardo Ody

I want to create a component on a form that allows me to select an item from a list of component items or type a new item. The idea is to store items that have been typed in previous executions at Form OnActivate time and then, when the focus reaches the component, I would like to display the components from the stored list and select one of them. Or, alternatively, if the stored list does not contain the text I need, type it into the component. Then, if you enter a new value, it will go to the already stored list, which at the end of the process will be rewritten with the new component included.
In short, a component that allows me to either select from a previously fed list or enter a new value in the component analogously to what I would do, for example, in a TEdit component.
I apologize if the question is very elementary, but I couldn't find material that would help me. I thought maybe about the TComboBox component, but I couldn't evaluate whether it allows me to manually feed a new value if I need to. And later include this new value in the list to be displayed in future processing.

Cheers

Ar? Ricardo
S?o Paulo - Brazil
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20240406/35153183/attachment.htm>

Reply by email