On Tuesday 18 October 2016 11:00:00 Graeme Geldenhuys wrote:

> I've change the ComboBox widget to TDropdownListEdit and your code
> suggestion does work. I can't seem to get the focus item set though.
> I use the following code to populate the combobox and set the focus item.
>   cbObjects.dropdown.cols.count := 0;
>   cbObjects.dropdown.cols.BeginUpdate;
>   for i := 0 to FObjectStrings.Count-1 do
>     cbObjects.dropdown.cols.addrow([FObjectStrings[i]]);
>   cbObjects.dropdown.cols.EndUpdate;
>   cbObjects.dropdown.ItemIndex := 0; // SAllString is always the 1st item
Suggestion: use a TenumEdit and set "<enumedit>.value:= 0;".
TDropdownListEdit is more a TStringEdit with a text selecting help.


Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
mseide-msegui-talk mailing list

Reply via email to