Page 1 of 1

ListIconGadget - Checked Event

Posted: Wed May 09, 2012 10:18 pm
by jamirokwai
Hi there,

I'd like to propose a new event: #PB_Event_Checked, which will be for checking and unchecking the Checkbox of a ListIconGadget.
It will give back the Gadget and Entry of the ListIcon where the change occurred.

This way, you can e.g. disable Gadgets without the need of scanning the ListIconGadget every now and then...

Thanks :-)

Re: ListIconGadget - Checked Event

Posted: Fri Apr 17, 2020 4:34 pm
by Cyllceaux
+1
Would be nice for TreeGadget, too.

Re: ListIconGadget - Checked Event

Posted: Fri Apr 17, 2020 4:44 pm
by IdeasVacuum
I think if you want it to apply to a specific gadget like a ListIcon, then it's name should suggest that association.

e.g. #PB_EventType_ListIconRowChecked, #PB_EventType_TreeNodeChecked

We already have general events that can be deployed, #PB_EventType_LeftClick and #PB_EventType_Change

Re: ListIconGadget - Checked Event

Posted: Fri Apr 17, 2020 5:58 pm
by Cyllceaux
I know...

The problem is simple. I only want to fire an event, when a checkbox changed. The problem is, I can change the state of a checkbox per click and per keyboard (spacebar).
So I have to "save" an state of a gadget and compare every time "change" or "click" is fired.