Re: [Lazarus] Combobox with sorted list of unique items?

2018-10-13 Thread Bart via Lazarus
On Fri, Oct 12, 2018 at 5:01 PM Bo Berglund via Lazarus wrote: > combobox.items.text := stringlist.text; combobox.items.assign(stringlist)? -- Bart -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org

Re: [Lazarus] Combobox with sorted list of unique items?

2018-10-12 Thread Bo Berglund via Lazarus
On Fri, 12 Oct 2018 15:30:52 +0200, Bart via Lazarus wrote: >On Fri, Oct 12, 2018 at 2:30 PM Vojt?ch ?ihák via Lazarus > wrote: >> >> I just tried TStringList(ComboBox1.Items).Duplicates:=dupIgnore; but it does >> not work for combo (in Qt4). > >Override Insert and check if it is already in

Re: [Lazarus] Combobox with sorted list of unique items?

2018-10-12 Thread Bart via Lazarus
On Fri, Oct 12, 2018 at 2:30 PM Vojtěch Čihák via Lazarus wrote: > > I just tried TStringList(ComboBox1.Items).Duplicates:=dupIgnore; but it does > not work for combo (in Qt4). Override Insert and check if it is already in there? Bart -- ___ Lazarus

[Lazarus] Combobox with sorted list of unique items?

2018-10-12 Thread Bo Berglund via Lazarus
I am trying to use a combobox as a container for recently used IP addresses for easy selection by the user. I can set the combobox style to csDropDown and Sorted to true. But I cannot find the duplicates setting so I can set it to unique... Is there some other way to do this except by loading the