Gadget events
Posted: Wed Mar 16, 2016 9:55 am
Would be nice if all gadgets get a small comment/section about supported events,
and a small note if it does not support any events.
For example, help for SplitterGadget and ButtonGadget do not say anything about
any events at all.
It's guesswork: Does the SplitterGadget support any event on all systems, or does
it work by accident on my system? According to the documentation it has no events.
I expect the SplitterGadget to fire #PB_EventType_Change if the user changes the splitter.
It fires an event #PB_Event_Gadget, and EventType() is always 0.
0 is #PB_EventType_LeftClick on my system.
A bit confusing, and I think proper documentation could (and should) help here.
Thanks!
and a small note if it does not support any events.
For example, help for SplitterGadget and ButtonGadget do not say anything about
any events at all.
It's guesswork: Does the SplitterGadget support any event on all systems, or does
it work by accident on my system? According to the documentation it has no events.
I expect the SplitterGadget to fire #PB_EventType_Change if the user changes the splitter.
It fires an event #PB_Event_Gadget, and EventType() is always 0.
0 is #PB_EventType_LeftClick on my system.
A bit confusing, and I think proper documentation could (and should) help here.
Thanks!