Forum
    • Categories
    • Register
    • Login

    "Relay" Mouse Event to component below [UI]

    Scheduled Pinned Locked Moved Scripting
    3 Posts 2 Posters 19 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.
    • G
      Gemaxos
      last edited by

      Greeting dear HISE community,

      I'm currently building a Handpan plugin. As you can see in the image (marked with green), the pads are simple panels with overwritten paintRoutines and MouseCallbacks, so that they appear and work like ellipses. If the mouse event occurs outside the ellipse, the event is basically just discarded.

      Now the plan is to have a sort of invisible knob behind the handpan, which can be dragged around.

      Problem is, in the red areas, the mouse event is captured by the pad panels instead of the invisible knob behind them.

      Is there a simple way to "relay" the mouse event to the next component below through the MouseCallback function? (So in this case from the pad panels to the panel below)

      Thanks for the help in advance :)

      image.png

      David HealeyD 1 Reply Last reply Reply Quote 0
      • David HealeyD
        David Healey @Gemaxos
        last edited by

        @Gemaxos Replace the whole thing with one big panel with separate click zones, and use the drag action in place of the knob.

        Free HISE Bootcamp Full Course for beginners.
        YouTube Channel - Public HISE tutorials
        My Patreon - HISE tutorials

        G 1 Reply Last reply Reply Quote 0
        • G
          Gemaxos @David Healey
          last edited by

          @David-Healey Well, then it gets way more tedious to adjust the position of each element. But fair, that's probably the easiest solution. Thanks :)

          1 Reply Last reply Reply Quote 0
          • First post
            Last post

          8

          Online

          2.3k

          Users

          13.7k

          Topics

          118.9k

          Posts