Thread: Detect holding down on a button?
-
October 26th, 2020, 20:12 #1
- Join Date
- Jan 2020
- Posts
- 222
Detect holding down on a button?
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?
-
October 26th, 2020, 20:15 #2
The onButtonPress event for the control?
https://fantasygroundsunity.atlassia...#onButtonPressPrivate Messages: My inbox is forever filling up with PMs. Please don't send me PMs unless they are actually private/personal messages. General FG questions should be asked in the forums - don't be afraid, the FG community don't bite and you're giving everyone the chance to respond and learn!
-
October 26th, 2020, 20:16 #3
- Join Date
- Jan 2020
- Posts
- 222
-
October 26th, 2020, 20:28 #4
Try this then: https://fantasygroundsunity.atlassia...ol#onClickDown
Private Messages: My inbox is forever filling up with PMs. Please don't send me PMs unless they are actually private/personal messages. General FG questions should be asked in the forums - don't be afraid, the FG community don't bite and you're giving everyone the chance to respond and learn!
-
October 26th, 2020, 23:49 #5
Supreme Deity
- Join Date
- Mar 2007
- Posts
- 20,412
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
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks