Jump to content
uniGUI Discussion Forums
RobYost

TUnicomboBox with no items

Recommended Posts

If I have now items in a TUniComboBox (style csDropDownList) it shows a line below the control where the list should be.

 

How can I hide this?

 

I even tried putting a panel over it, but it shows through.

Share this post


Link to post
Share on other sites

picture 1 is before click on drop down

 

 

picture 2 is after click on drop down

 

 

picture 3 is the panel I put letting them know they have no late fees and how to create one.

The empty drop-down shows through to the panel. I tried making the combo invisible when 

I pop up the panel, but drop down part still shows.

post-4889-0-67422600-1512742023_thumb.png

post-4889-0-04964000-1512742034_thumb.png

post-4889-0-66905400-1512742050_thumb.png

Share this post


Link to post
Share on other sites

Ok, can you try to use this "solution" for now?

 

Use this config when the combo is empty:

procedure TMainForm.UniFormCreate(Sender: TObject);
begin
  UniComboBox1.JSInterface.JSConfig('triggerAction', ['query']);
end;

After you will fill the combo, use this:

UniComboBox1.JSInterface.JSAssign('triggerAction', ['all']);

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×