HISE Logo Forum
    • Categories
    • Register
    • Login

    In LAF function, how to know when control is active?

    Scheduled Pinned Locked Moved Solved General Questions
    3 Posts 2 Posters 106 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • dannytaurusD
      dannytaurus
      last edited by dannytaurus

      First of all I need to say how helpful this forum has been. I've been working on my UI all day and every single question has been answered by either the docs or a forum search.

      But this one eludes me...

      I'm using local LAF for my sliders and I'd like to show the slider text when it's inactive and show the value when it's active (being updated).

      Is there a way to know when control is active inside the laf.registerFunction ?

      I want hide/show the text and value based on this.

      Like the CSS example here: https://forum.hise.audio/post/87540 which is done with a simple 'active' state.

      CleanShot 2024-10-04 at 11.36.41.gif

      Meat Beats: https://meatbeats.com
      Klippr Video: https://klippr.video

      d.healeyD 1 Reply Last reply Reply Quote 0
      • d.healeyD
        d.healey @dannytaurus
        last edited by

        @dannytaurus Looking at the gif it seems that by "active" you mean when the mouse is over the control? For that you can use the obj.over property (or it might be obj.hover, you'll need to check).

        Libre Wave - Freedom respecting instruments and effects
        My Patreon - HISE tutorials
        YouTube Channel - Public HISE tutorials

        dannytaurusD 1 Reply Last reply Reply Quote 0
        • dannytaurusD
          dannytaurus @d.healey
          last edited by dannytaurus

          @d-healey Aha! Found it - seconds after posting of course 😂

          I want to change text both when hovering and when updating (being dragged).

          I thought there was only a hover param but there's clicked too which does exactly what I need.

          Thanks!

          Meat Beats: https://meatbeats.com
          Klippr Video: https://klippr.video

          1 Reply Last reply Reply Quote 0
          • dannytaurusD dannytaurus marked this topic as a question on
          • dannytaurusD dannytaurus has marked this topic as solved on
          • First post
            Last post

          41

          Online

          1.7k

          Users

          11.7k

          Topics

          102.0k

          Posts