HISE Logo Forum
    • Categories
    • Register
    • Login

    Right Click Context Menu 2024

    Scheduled Pinned Locked Moved Scripting
    7 Posts 3 Posters 444 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.
    • A
      aaronventure
      last edited by

      What's the current best way to implement right click context menu?

      I can get the component under mouse on click, get context items for that component from wherever. Functiality is then... where?

      I mean this can probably be a panel that pops up on right click, gets painted based on whatever object I feed it, and has a sizeable mouse function where each item's functionality is described. But am I missing a simpler way to do this?

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

        @aaronventure I think a panel is the way to go

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

        Christoph HartC 1 Reply Last reply Reply Quote 0
        • Christoph HartC
          Christoph Hart @d.healey
          last edited by

          I would recommend using a broadcaster. The wizard should get you 99% there.

          A 1 Reply Last reply Reply Quote 2
          • A
            aaronventure @Christoph Hart
            last edited by

            @Christoph-Hart Ah looking at it right now.

            Found a sizeable example in the docs, too! What a day!

            Link Preview Image
            HISE | Docs

            favicon

            (docs.hise.audio)

            Christoph HartC 1 Reply Last reply Reply Quote 0
            • Christoph HartC
              Christoph Hart @aaronventure
              last edited by

              @aaronventure wow I forgot I wrote that, but that looks awesome. Good me.

              A 1 Reply Last reply Reply Quote 3
              • A
                aaronventure @Christoph Hart
                last edited by

                @Christoph-Hart would it be possible to add an option or change it so that the broadcaster context menu pops up at the position of the mouse click, like it is in all software?

                Christoph HartC 1 Reply Last reply Reply Quote 0
                • Christoph HartC
                  Christoph Hart @aaronventure
                  last edited by

                  @aaronventure yes sensible request, the function even already has a bool parameter to align this to the component or not, but I'm not using it in the broadcaster's context menu yet (the panel's context menus can do this though).

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

                  18

                  Online

                  1.7k

                  Users

                  11.9k

                  Topics

                  103.2k

                  Posts