Jump to content


Photo

TUnicomboBox with no items


  • Please log in to reply
3 replies to this topic

#1 RobYost

RobYost

    Advanced Member

  • uniGUI Subscriber
  • PipPipPipPip
  • 195 posts
  • LocationFlorida, USA

Posted 07 December 2017 - 09:49 PM

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.


  • 0

http://unigui.mirahe.../wiki/Main_Page

Please add any utilities you think are useful. I will try to keep the wiki organized.


#2 Delphi Developer

Delphi Developer

    Advanced Member

  • Moderators
  • 3643 posts

Posted 08 December 2017 - 05:22 AM

Hi,

Please make a screenshot
  • 0

#3 RobYost

RobYost

    Advanced Member

  • uniGUI Subscriber
  • PipPipPipPip
  • 195 posts
  • LocationFlorida, USA

Posted 08 December 2017 - 02:10 PM

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.

Attached Files

  • Attached File  1.png   19.29KB   1 downloads
  • Attached File  2.png   19.99KB   1 downloads
  • Attached File  3.png   14.75KB   1 downloads

  • 0

http://unigui.mirahe.../wiki/Main_Page

Please add any utilities you think are useful. I will try to keep the wiki organized.


#4 Delphi Developer

Delphi Developer

    Advanced Member

  • Moderators
  • 3643 posts

Posted 08 December 2017 - 03:21 PM

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']);

  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users