Volk65 Posted December 20, 2017 Share Posted December 20, 2017 Hi all! I need to refresh the list at the moment when I push the button down. When the key is pressed the list should be updated. But when pressed again, the list opens and immediately closes. What am I doing wrong? Test2.rar Quote Link to comment Share on other sites More sharing options...
Sherzod Posted December 21, 2017 Share Posted December 21, 2017 Hi, In your case, can you try to use this solution as a workaround?: procedure TMainForm.UpdateComboList; var OldVal: String; begin UniComboBox1.JSInterface.JSAssign('multiSelect', [True]); //<----------------- OldVal:=UniComboBox1.Text; UniComboBox1.Items.Clear; UniComboBox1.Items.Add('ONE'); UniComboBox1.Items.Add('TWO'); UniComboBox1.Items.Add('BEGIN'); UniComboBox1.Items.Add('END'); UniComboBox1.Items.Add('CHECKING'); UniComboBox1.Items.Add('SENDER'); UniComboBox1.Items.Add('UNICOMBO'); UniComboBox1.Items.Add('COMBOBOX'); UniComboBox1.Items.Add('BOX2'); UniComboBox1.Items.Add('TVBOX'); UniComboBox1.Items.Add('SIMPLE BOX'); UniComboBox1.Items.Add('SELECT VALUE'); UniComboBox1.Text:=OldVal; UniComboBox1.JSInterface.JSAssign('multiSelect', [False]); //<----------------- end; Best regards, Quote Link to comment Share on other sites More sharing options...
Volk65 Posted December 21, 2017 Author Share Posted December 21, 2017 Thank you! It works 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.