<p style="padding:0 0 0 0; margin:0 0 0 0;">I just tried TStringList(ComboBox1.Items).Duplicates:=dupIgnore; but it does not work for combo (in Qt4).</p>
<p style="padding:0 0 0 0; margin:0 0 0 0;"> </p>
<p style="padding:0 0 0 0; margin:0 0 0 0;">V.</p>
<p style="padding:0 0 0 0; margin:0 0 0 0;">______________________________________________________________<br />
> Od: "Bo Berglund via Lazarus" <lazarus@lists.lazarus-ide.org><br />
> Komu: lazarus@lists.lazarus.freepascal.org<br />
> Datum: 12.10.2018 13:22<br />
> Předmět: [Lazarus] Combobox with sorted list of unique items?<br />
></p>
I am trying to use a combobox as a container for recently used IP<br />
addresses for easy selection by the user.<br />
I can set the combobox style to csDropDown and Sorted to true.<br />
But I cannot find the duplicates setting so I can set it to unique...<br />
<br />
Is there some other way to do this except by loading the data on<br />
startup into a TStringList with sorted and unique set and then<br />
transfer the content into the Combobox?<br />
<br />
<br />
-- <br />
Bo Berglund<br />
Developer in Sweden<br />
<br />
-- <br />
_______________________________________________<br />
Lazarus mailing list<br />
Lazarus@lists.lazarus-ide.org<br />
<a href="https://lists.lazarus-ide.org/listinfo/lazarus">https://lists.lazarus-ide.org/listinfo/lazarus</a><br />