Dave O Well-Known Member Licensed User Longtime User Jul 10, 2016 #1 I was adding tooltips to my apps, which are triggered by a view's LongClick event. I noticed that toggleButton does not list a LongClick event (in the docs or in the Intellisense sub-tab list), but it still works if I add the event listener as I would for a normal button. Something to update in the docs and Intellisense?
I was adding tooltips to my apps, which are triggered by a view's LongClick event. I noticed that toggleButton does not list a LongClick event (in the docs or in the Intellisense sub-tab list), but it still works if I add the event listener as I would for a normal button. Something to update in the docs and Intellisense?
Erel B4X founder Staff member Licensed User Longtime User Jul 10, 2016 #2 This is by design. All views implement the LongClick event because they all inherit from the same base class. Some views hide the common events as they are not relevant (or the event is consumed internally).
This is by design. All views implement the LongClick event because they all inherit from the same base class. Some views hide the common events as they are not relevant (or the event is consumed internally).
Dave O Well-Known Member Licensed User Longtime User Jul 10, 2016 #3 It seems to me that for a toggleButton, the LongClick event is as relevant as it is for a normal button, and it's not consumed internally. That's why I found it strange that it wasn't "public" in B4A.
It seems to me that for a toggleButton, the LongClick event is as relevant as it is for a normal button, and it's not consumed internally. That's why I found it strange that it wasn't "public" in B4A.