STAR TREK 2d20
  1. #1
    Xarxus's Avatar
    Join Date
    Mar 2019
    Location
    Rome (Italy)
    Posts
    253

    onClickRelease event on formattedtextcontrol or genericcontrol

    I have a formattedtextcontrol in a windowlist. It works fine, it shows the text formatted as I want.
    The control is readonly.

    Now I would need to intercept the click event (I think onClickRelease is fine). I tried a trivial script, with the sole purpose of writing something in the console, but it doesn't work. So I tried to put a genericcontrol over it and manage the onClickRelease on this one, but even so I can't intercept it.

    There's a way?
    FGU ULTIMATE License
    Click here for RPG Music or here for Dwarves songs on Spotify

  2. #2
    If you want to capture the onClickRelease event, you must return true on the onClickDown event to let the application know you still want to capture the mouse click event. Otherwise, it falls through to the next UI object.

    Regards,
    JPG

  3. #3
    Xarxus's Avatar
    Join Date
    Mar 2019
    Location
    Rome (Italy)
    Posts
    253
    That's what I needed, ty guy, as usual.
    FGU ULTIMATE License
    Click here for RPG Music or here for Dwarves songs on Spotify

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
  •  
FG Spreadshirt Swag

Log in

Log in