5E Storm Kings Thunder 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
    Newcastle, UK (for a bit)
    Posts
    27,765
    The onButtonPress event for the control?

    https://fantasygroundsunity.atlassia...#onButtonPress
    FG Con 16 Fantasy Grounds Online RPG Convention - Postponed New date To Be Confirmed.
    Register at www.fg-con.com for all the latest info.

    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
    Newcastle, UK (for a bit)
    Posts
    27,765
    FG Con 16 Fantasy Grounds Online RPG Convention - Postponed New date To Be Confirmed.
    Register at www.fg-con.com for all the latest info.

    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)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Fantasy Grounds Fridays Pre

Log in

Log in