Recent

Author Topic: CheckComboBox Item Width  (Read 340 times)

seany

  • Jr. Member
  • **
  • Posts: 99
CheckComboBox Item Width
« on: January 31, 2023, 04:21:37 am »
When you click on a CheckComboBox, it creates a dropdown list.
The Dropdown list has the same width as the CheckCombobox itself, even if there are items where the textwidth is much higher.

How can we ensure that the dropdown list automatically expand to show the full text width of items? Thank you.


KodeZwerg

  • Hero Member
  • *****
  • Posts: 1177
  • Fifty shades of code.
    • Delphi & FreePascal
Re: CheckComboBox Item Width
« Reply #1 on: January 31, 2023, 04:29:31 am »
Since you give no clue about your target OS nor your FPC/Lazarus versions, here is my answer for Windows OS written in Delphi, but logic is same.
« Last Edit: Tomorrow at 31:76:97 by KodeZwerg »

seany

  • Jr. Member
  • **
  • Posts: 99
Re: CheckComboBox Item Width
« Reply #2 on: January 31, 2023, 04:46:37 am »
My bad

Lazarus 2.2.4
FPC : 3.2.2

Linux x86_64 QT5

 

TinyPortal © 2005-2018