Recent

Author Topic: combobox with chekboxes control  (Read 2636 times)

Never

  • Sr. Member
  • ****
  • Posts: 409
  • OS:Win7 64bit / Lazarus 1.4
combobox with chekboxes control
« on: August 28, 2014, 12:13:13 pm »
hello
is there a way to add checkboxes or a checklist in combox?
is there a custom cross platform combobox implementing checkboxes in list items?
is there a property i am missing maybe?
Tryed to mimic the behavior with dropdown button (luicontrols) but fails when added in tool bar
« Last Edit: August 28, 2014, 12:17:34 pm by Never »
Νέπε Λάζαρε λάγγεψων οξωκά ο φίλοσ'ς αραεύσε

Blaazen

  • Hero Member
  • *****
  • Posts: 3241
  • POKE 54296,15
    • Eye-Candy Controls
Re: combobox with chekboxes control
« Reply #1 on: August 28, 2014, 12:42:40 pm »
Hi, there already exists feature request for TComboBoxEx: http://bugs.freepascal.org/view.php?id=26515. I've got it on my ToDo. It is, in fact, very similar to TColorBox (read-only combo with colors) or to my TECColorCombo. Doing combo with checkboxes is doable too, it's like TComboBoxEx but instead of images there'll be checkboxes painted via themes + some logic.
I'm adding it to my ToDo but don't expect it soon. Let's say 1 or 2 months.

If you want to write that component yourself, I recommend you to start with look to code of TColorBox.
Lazarus 2.3.0 (rev main-2_3-2863...) FPC 3.3.1 x86_64-linux-qt Chakra, Qt 4.8.7/5.13.2, Plasma 5.17.3
Lazarus 1.8.2 r57369 FPC 3.0.4 i386-win32-win32/win64 Wine 3.21

Try Eye-Candy Controls: https://sourceforge.net/projects/eccontrols/files/

Never

  • Sr. Member
  • ****
  • Posts: 409
  • OS:Win7 64bit / Lazarus 1.4
Re: combobox with chekboxes control
« Reply #2 on: August 28, 2014, 01:02:31 pm »
Thank you very much Blaazen
already noticed these controls and tryed to implement checkboxes acording to their sources,
 but i'm stil learning lazarus and free pascal
and failed badly  %)
 the best result i had was with a frame, edit, a button and checklist align them and swich the parent and visible property at runtime .
this aproach fails when i'm trying to get the corect screen position,
 clienttoscreen and screentoclient seem to be wrong when a frame is in another control (toolbar or groupbox).
Also tried popups searched  for events like DrawMenuItem or props like OwnerDraw but nothing.
« Last Edit: August 28, 2014, 02:57:58 pm by Never »
Νέπε Λάζαρε λάγγεψων οξωκά ο φίλοσ'ς αραεύσε

 

TinyPortal © 2005-2018