Jump to content

Get Selected ComboBox Image index


freedowsRoO

Recommended Posts

6 minutes ago, Sherzod said:

Hi, 

Do you mean "ItemIndex"? 

ItemIndex doesn't work, i'm trying to do something like this:

procedure TMainForm.UniComboBox1Change(Sender: TObject);
Var
  sVar: String;
begin
  sVar:= UniComboBox1.IconItems.Items[UniComboBox1.ItemIndex].Caption;
  ShowMessage('test: ' + sVar );
end;

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...