Is there any way to detect when someone is holding down on a button rather than clicking?
How about on a toolbar button in the image window?
Printable View
Is there any way to detect when someone is holding down on a button rather than clicking?
How about on a toolbar button in the image window?
The onButtonPress event for the control?
https://fantasygroundsunity.atlassia...#onButtonPress
Try this then: https://fantasygroundsunity.atlassia...ol#onClickDown
All window controls support the onClickDown and onClickRelease events. The button control also supports an onButtonPress event that corresponds to a click and release within the bounds of the button.
Remember to set the return value based on what you want FG to do. true = no further processing; nil = standard processing (including any fall through); false = skip standard processing of this control and fall through
Regards,
JPG