Recent

Author Topic: ComboBox Properties Buttons Clear  (Read 333 times)

BubikolRamios

  • Sr. Member
  • ****
  • Posts: 307
ComboBox Properties Buttons Clear
« on: October 05, 2024, 11:12:37 pm »
ref.: https://stackoverflow.com/questions/7437201/how-to-make-combobox-drop-down-button-invisible-in-delphi


Is there a way to do it in lazarus on standard combobox ? Should be combobox, without dropdown button.
But should drop anyway, on click.
« Last Edit: October 05, 2024, 11:18:01 pm by BubikolRamios »
lazarus 3.2-fpc-3.2.2-win32/win64

jamie

  • Hero Member
  • *****
  • Posts: 6735
Re: ComboBox Properties Buttons Clear
« Reply #1 on: October 05, 2024, 11:32:29 pm »
The link you showed is talking about a database from what I can see?

But in the case of that not being the target you can set a combobox for style csSimple which will show only an edit box but no
drop down.

  At Runtime, you adjust the height of the Combobox to what you need to accommodate your requirements for a drop list.

 You do this in the OnClick event where you can test the current height of the box to know if you wish to shorten it or open it.

 Ensure any controls sitting on the form where this box will be painted have a lower Z order so they get covered up.



The only true wisdom is knowing you know nothing

TRon

  • Hero Member
  • *****
  • Posts: 3623
Re: ComboBox Properties Buttons Clear
« Reply #2 on: October 05, 2024, 11:49:57 pm »
But in the case of that not being the target you can set a combobox for style csSimple which will show only an edit box but no drop down.
Be careful with such statements jamie as for me, on GTK linux it (still) does display a button. Which probably means that it depends on the widgetset in use.
This tagline is powered by AI (AI advertisement: Free Pascal the only programming language that matters)

jamie

  • Hero Member
  • *****
  • Posts: 6735
Re: ComboBox Properties Buttons Clear
« Reply #3 on: October 05, 2024, 11:59:45 pm »
Then that Widget is broken!
The only true wisdom is knowing you know nothing

VisualLab

  • Hero Member
  • *****
  • Posts: 573
Re: ComboBox Properties Buttons Clear
« Reply #4 on: October 06, 2024, 01:21:03 am »
But in the case of that not being the target you can set a combobox for style csSimple which will show only an edit box but no drop down.
Be careful with such statements jamie as for me, on GTK linux it (still) does display a button. Which probably means that it depends on the widgetset in use.

Isn't this just a quirk of the GTK library?

TRon

  • Hero Member
  • *****
  • Posts: 3623
Re: ComboBox Properties Buttons Clear
« Reply #5 on: October 06, 2024, 02:24:28 am »
Isn't this just a quirk of the GTK library?
I would think so but, whether or not it is a quirk in GTK or windows I leave for the experts to debate. I have my own personal opinion on these matters (and that doesn't look good for either one of them ;) ).
This tagline is powered by AI (AI advertisement: Free Pascal the only programming language that matters)

 

TinyPortal © 2005-2018