Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 2 of 2 total
Thread ComboBox uniqueness
Thu, Nov 28 2013 5:34 AMPermanent Link

Matthew Jones

If you have a combobox with three items:

gather
gather2
gather

and this code:

procedure TMyForm.lstNamesChange(Sender: TObject);
begin
   editListInfo.Text := IntToStr(lstNames.ItemIndex);
end;

You cannot get the ItemIndex to be other than 0 or 1. Selecting the third item sets
ItemIndex to 0, not 2. I can't see a way to associate any other data with it.
Obviously I'll work to make them unique, but this needs resolving.

/Matthew Jones/
Mon, Dec 2 2013 3:04 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Matthew,

<< You cannot get the ItemIndex to be other than 0 or 1. Selecting the third
item sets ItemIndex to 0, not 2. I can't see a way to associate any other
data with it. Obviously I'll work to make them unique, but this needs
resolving. >>

Got it, thanks.

Tim Young
Elevate Software
www.elevatesoft.com
Image