ListIconGadget - Checked Event

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
jamirokwai
Enthusiast
Enthusiast
Posts: 772
Joined: Tue May 20, 2008 2:12 am
Location: Cologne, Germany
Contact:

ListIconGadget - Checked Event

Post 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 :-)
Regards,
JamiroKwai
Cyllceaux
Enthusiast
Enthusiast
Posts: 469
Joined: Mon Jun 23, 2014 1:18 pm
Contact:

Re: ListIconGadget - Checked Event

Post by Cyllceaux »

+1
Would be nice for TreeGadget, too.
IdeasVacuum
Always Here
Always Here
Posts: 6425
Joined: Fri Oct 23, 2009 2:33 am
Location: Wales, UK
Contact:

Re: ListIconGadget - Checked Event

Post 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
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
Cyllceaux
Enthusiast
Enthusiast
Posts: 469
Joined: Mon Jun 23, 2014 1:18 pm
Contact:

Re: ListIconGadget - Checked Event

Post 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.
Post Reply