Jump to content

UniDBComboBox now showing down arrow.


skafy

Recommended Posts

Hi,

 

I'm trying to create dbComboBox on the fly, but having a problem with proper display.

 

Here is my code. Also have FDConnection, FDQuery & DataSource all connected correctly

dbcombo:= TUniDBComboBox.Create(Self);
dbcombo.Align:= alTop;
dbcombo.AlignWithMargins:= True;

Now when I run the program there is Combobox without down arrow (where would I click to select a value from dropdown list). DBCombobox is presented as UniEdit. I'm missing drop arrow.

 

 

Link to comment
Share on other sites

DataSource connected

DataField selected

ReadOnly - NO

Items sould get filled automaticly when query become active?

 

If I treat DBCombo as usual ComboBox and filled it staticly like so:

  dbcombo:= TUniDBComboBox.Create(Self);
  dbcombo.ReadOnly:= False;
  dbcombo.Enabled:= True;
  dbcombo.Items.Add('ad');
  dbcombo.Items.Add('aad');

I also don't see down arrow at the right site of the control.

Link to comment
Share on other sites

No

 

Ok, So I've added records to DBComboBox like so:

  FDQuery1.Open;
  ShowMessage(FDQuery1.RecordCount.ToString);
  while not FDQuery1.Eof do
  begin
    UniDBComboBox1.Items.Add(FDQuery1.FieldByName('NAME').AsString);

    FDQuery1.Next;
  end;
  FDQuery1.Close;

ShowMessage print 35, whitch shows that query returned data.

 

Still no DownArrow at right site of the control.

Link to comment
Share on other sites

Sorry, at the moment, I do not have an installed FireBird server

Just suggession, you don't need install firebird, use embedded firebird. ( https://www.firebirdsql.org/pdfmanual/html/ufb-cs-embedded.html )

https://firebirdsql.org/en/firebird-3-0/

download "zip" release and unzip it any folder your disk. So, via this way, you can use all version on same pc. just don't forget, this is work only local.

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