skafy Posted August 27, 2018 Share Posted August 27, 2018 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. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted August 27, 2018 Share Posted August 27, 2018 Hi, DataSource -? DataField -? ReadOnly -? Items -? Quote Link to comment Share on other sites More sharing options...
skafy Posted August 27, 2018 Author Share Posted August 27, 2018 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. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted August 27, 2018 Share Posted August 27, 2018 Items sould get filled automaticly when query become active? No Quote Link to comment Share on other sites More sharing options...
skafy Posted August 27, 2018 Author Share Posted August 27, 2018 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. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted August 27, 2018 Share Posted August 27, 2018 Which build are you using? Can you make a simple testcase for this?! Quote Link to comment Share on other sites More sharing options...
skafy Posted August 27, 2018 Author Share Posted August 27, 2018 I'm using latest version 1.5 build 1479. Here is an example. Button adds items to DBCombobox.Items UniGui example.zip Quote Link to comment Share on other sites More sharing options...
Sherzod Posted August 27, 2018 Share Posted August 27, 2018 But where is the DataSet? Quote Link to comment Share on other sites More sharing options...
skafy Posted August 27, 2018 Author Share Posted August 27, 2018 Here UniGui example.zip Quote Link to comment Share on other sites More sharing options...
skafy Posted August 28, 2018 Author Share Posted August 28, 2018 Did you manage to replicate the problem? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted August 28, 2018 Share Posted August 28, 2018 Sorry, at the moment, I do not have an installed FireBird server Quote Link to comment Share on other sites More sharing options...
skafy Posted August 28, 2018 Author Share Posted August 28, 2018 I see. So could you please take the first example. DBCombobox is not connected in that case and filled with static data. the result is the same as when connected to DB,. Quote Link to comment Share on other sites More sharing options...
Freeman35 Posted August 28, 2018 Share Posted August 28, 2018 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.