Starfinder Playlist
  1. #1

    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?

  2. #2
    Trenloe's Avatar
    Join Date
    May 2011
    Location
    Colorado, USA
    Posts
    33,361
    The onButtonPress event for the control?

    https://fantasygroundsunity.atlassia...#onButtonPress
    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!

  3. #3
    Quote Originally Posted by Trenloe View Post
    The onButtonPress event for the control?

    https://fantasygroundsunity.atlassia...#onButtonPress
    Nope. Not from my experiments. Seems to only fire on release of the button.

  4. #4
    Trenloe's Avatar
    Join Date
    May 2011
    Location
    Colorado, USA
    Posts
    33,361
    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!

  5. #5
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
STAR TREK 2d20

Log in

Log in