Jump to content

Load UniCombobox dynamically with images


artem_niko

Recommended Posts

Hello!

How load UniComboBox dynamically and set ImageIndex, using UniComboBox.IconItems property?

This is load UniComboBox, but, without ImageIndex:

  if FDConnection.Connected = True then
  begin
    FDQ:=TFDQuery.Create(nil);
    FDQ.Connection:=FDConnection;
    FDQ.SQL.Text:='SELECT * FROM TABLE';
    FDQ.Open;
    UniComboBox1.Items.Clear;
    FDQ.First;
    while not FDQ.Eof do
    begin
      UniComboBox1.IconItems.Add.Caption:=ВременныйЗапрос.FieldByName('NAME').AsString;
      ВременныйЗапрос.Next;
    end;
    FreeAndNil(FDQ);
  end;

This is work, but, without Images...

Link to comment
Share on other sites

4 minutes ago, Sherzod said:

Hello, 

Yes, we have a request for this issue. 

Currently, I have not yet renewed my license renewal subscription, because until the new versions implement what I need and therefore I use version 1555.

Until the release of the new version, there is no other way to solve my question?

Link to comment
Share on other sites

  • 8 months later...

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...