Recent

Author Topic: Combobox with Checkboxes Control Lazarus Package  (Read 21625 times)

Legolas

  • Full Member
  • ***
  • Posts: 117
    • http://itaprogaming.free.fr
Re: Composite Control Comobox with Checkboxes
« Reply #15 on: September 09, 2014, 02:55:18 pm »
Check the attached image. There is a dark line on the right side of the drop down button.

Setting bitbtn.spacing to 1 solves the issue  :)

Never

  • Sr. Member
  • ****
  • Posts: 409
  • OS:Win7 64bit / Lazarus 1.4
Re:UPD- Composite Control Combobox with Checkboxes
« Reply #16 on: September 09, 2014, 10:00:34 pm »
[V 0.07]
1)Fixed reaction on system keys
2)Changed property  TCheckListbox.ExtendedSelect to False
3)Changed property  TCheckListbox.MultiSelected to False
4)Changed property  TBitBtn.Spacing to 1 @Legolas thank you very much
5)Changed Tab Behavior to Ignor TBitBtn
6)Fixed to show full items
[Instructions]
Open List  : [Alt+Down] or [Space] or [Enter]
Close List : [Esc] or [Tab]

« Last Edit: September 26, 2014, 01:19:29 pm by Never »
Νέπε Λάζαρε λάγγεψων οξωκά ο φίλοσ'ς αραεύσε

engkin

  • Hero Member
  • *****
  • Posts: 3112
Re: Composite Control Comobox with Checkboxes
« Reply #17 on: September 10, 2014, 04:57:48 am »
It is almost perfect, but - I hope you don't hate me for this - if I press Space twice in a fresh edit (before opening the list), I get "Index -1 out of bounds ..." error. Sorry, might be related to the fact that no item is "selected" by default, which I was hesitant to mention before.

When I got that error I switched to the browser to write this post, then decided to switch back to the form/error message, but could not. Maybe something needs to be between Try/Finally construct?

Never

  • Sr. Member
  • ****
  • Posts: 409
  • OS:Win7 64bit / Lazarus 1.4
Re: Composite Control Combobox with Checkboxes
« Reply #18 on: September 10, 2014, 01:02:53 pm »
Quote
Index -1 out of bounds
Hello @engkin !!! i don't hate you at all
i appreciate your invaluable help!!!

even though i can't reproduce the error you mention
luckily there is only one place this can occur.
later in the date i will fix it and will add support for [Alt+up] to close the list also.
It would be nice if people report the platforms this composite control works.
will gather the info and add it in the description in order to avoid wasted time from potential users
Thank you very  much @engin
« Last Edit: September 11, 2014, 09:26:42 pm by Never »
Νέπε Λάζαρε λάγγεψων οξωκά ο φίλοσ'ς αραεύσε

Never

  • Sr. Member
  • ****
  • Posts: 409
  • OS:Win7 64bit / Lazarus 1.4
Re:UPD- Composite Control Combobox with Checkboxes
« Reply #19 on: September 10, 2014, 08:15:31 pm »
[V 0.08]
1)Added [Alt+Up] to close the list
2)List opens with the first item selected if exists
3)Fixed index out of bounds
[Instructions]
Open List   : [Alt+Down] or [Space] or [Enter]
Close List  : [Alt+Up] or [Esc] or [Tab]
« Last Edit: September 26, 2014, 01:18:51 pm by Never »
Νέπε Λάζαρε λάγγεψων οξωκά ο φίλοσ'ς αραεύσε

Blaazen

  • Hero Member
  • *****
  • Posts: 3241
  • POKE 54296,15
    • Eye-Candy Controls
Re: Composite Control Comobox with Checkboxes
« Reply #20 on: September 10, 2014, 08:37:54 pm »
My implementation is finally done, you can download package here: http://bugs.freepascal.org/view.php?id=26515
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: Composite Control Combobox with Checkboxes
« Reply #21 on: September 10, 2014, 09:03:17 pm »
Thats great Blaazen!! congrats
just had a look on comboex2
is there a way to make it stay open until i select all the items i want? the way it works
 as a user i have to open and close for each item or keep it close and traverse the list with keys
1)Got an error  pressing [alt+up][alt+down] [external sigsev][win32calback.inc][line 1048] and [enter] 2 times but crash lazarus and didn't catch the details

2)noticed there is no focus indication
[edit]
at comboex [alt+up/down] works fine [enter] produces the same crash
noticed the crash fires when i was in edit not on list
« Last Edit: September 11, 2014, 09:27:06 pm by Never »
Νέπε Λάζαρε λάγγεψων οξωκά ο φίλοσ'ς αραεύσε

Blaazen

  • Hero Member
  • *****
  • Posts: 3241
  • POKE 54296,15
    • Eye-Candy Controls
Re: Composite Control Comobox with Checkboxes
« Reply #22 on: September 10, 2014, 10:12:35 pm »
Quote
as a user i have to open and close for each item or keep it close and traverse the list with keys
Maybe in Windows but probably not in Qt4 and GTK2 - and I wanted to make the same behavaviour on all platforms.

I'll try reproduce the bug and repair it.

Thanks.
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/

engkin

  • Hero Member
  • *****
  • Posts: 3112
Re: Composite Control Comobox with Checkboxes
« Reply #23 on: September 11, 2014, 12:35:14 am »
My implementation is finally done, you can download package here: http://bugs.freepascal.org/view.php?id=26515
I suggest that you open a new topic for it so we can report possible bugs, if you want.

Blaazen

  • Hero Member
  • *****
  • Posts: 3241
  • POKE 54296,15
    • Eye-Candy Controls
Re: Composite Control Comobox with Checkboxes
« Reply #24 on: September 11, 2014, 01:43:25 am »
@ Never
Error fixed in comboex3.zip. It was Windows only bug, an attempt to read item with index -1 (ItemEnabled[-1]).

@ engkin
Done: http://forum.lazarus.freepascal.org/index.php/topic,25784.msg157056/topicseen.html#new

Thanks.
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:UPD- Composite Control Combobox with Checkboxes
« Reply #25 on: September 13, 2014, 05:34:15 pm »
[V 0.11] [13/9/2014 16:48:37]
1)Added property p_ShowScrollBar
[Instructions]
Open List   : [Alt+Down] or [Space] or [Enter]
Close List  : [Alt+Up] or [Esc] or [Tab](close and move forward)
property : p_VisibleItems The visible items in the list   [min=1]
property : p_ShowScrollBar [True] if you have a long list  and you want scrollbar in the list
property : p_Visile [True]if the list is visible
property : p_VisibleItems The visible items in the list   [min=1]
property : p_Showing [True] while showing the list
property : p_Hiding  [True] while hiding
property : p_TopIndex [Return the top index of the list]
Fill the list with proc_CheckListAddStringList
Get Selected Items with proc_GetSelectedItems

////////////////////////////////////////
[V 0.10] [12/9/2014 08:09:44]
1)Fixed lost focus issue from parent
////////////////////////////////////////
[V 0.09] [11/9/2014 18:19:13]
1)Fixed cursor position in edit
2)Removed popup menu from list
////////////////////////////////////////   
« Last Edit: September 26, 2014, 01:18:24 pm by Never »
Νέπε Λάζαρε λάγγεψων οξωκά ο φίλοσ'ς αραεύσε

engkin

  • Hero Member
  • *****
  • Posts: 3112
Re: Composite Control Combobox with Checkboxes
« Reply #26 on: September 13, 2014, 06:12:38 pm »
1-When I open a list, it flickers a lot.
2-If I open a list and then switch "quickly" to a different application using Alt+Tab:
  a- The list stays open.
  b- The application stays active (at least its title bar indicates that).
 
  Check attached image.

Never

  • Sr. Member
  • ****
  • Posts: 409
  • OS:Win7 64bit / Lazarus 1.4
Re: Composite Control Combobox with Checkboxes
« Reply #27 on: September 13, 2014, 06:26:24 pm »
Quote
1-When I open a list, it flickers a lot.

can't reproduce this
but is possible in slow machines and only if the list is near the bottom of the screen
or your mouse is on scrollbar of the list

can you confirm this please?
Quote
2-If I open a list and then switch "quickly" to a different application using Alt+Tab:
  a- The list stays open.
  b- The application stays active (at least its title bar indicates that).
thank you engin
noticed that this hapens only when you open the list with the mouse and the mouse do not leave the drop down button while you instandly move to another app!!
Νέπε Λάζαρε λάγγεψων οξωκά ο φίλοσ'ς αραεύσε

engkin

  • Hero Member
  • *****
  • Posts: 3112
Re: Composite Control Combobox with Checkboxes
« Reply #28 on: September 13, 2014, 07:21:16 pm »
but is possible in slow machines and only if the list is near the bottom of the screen
or your mouse is on scrollbar of the list

can you confirm this please?
Slow machine? Maybe 1.7 GHz, is it slow?  :'(
Only near the bottom of the screen? No
Or mouse on scrollbar of the list? No

Never

  • Sr. Member
  • ****
  • Posts: 409
  • OS:Win7 64bit / Lazarus 1.4
Re: Composite Control Combobox with Checkboxes
« Reply #29 on: September 13, 2014, 07:33:07 pm »
no everything looks fine ...you might run in a virtual box.. with limited memory and cpu!
anyways found that in win7 and > the taskbar is set to always stay on top except is set to auto hide so i think is not so clever to fight the os
i will remove a hack in the timer to stop this efect
thank you very much engkin
Νέπε Λάζαρε λάγγεψων οξωκά ο φίλοσ'ς αραεύσε

 

TinyPortal © 2005-2018