HISE Logo Forum
    • Categories
    • Register
    • Login

    AltClick on a button

    Scheduled Pinned Locked Moved General Questions
    8 Posts 3 Posters 335 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.
    • LindonL
      Lindon
      last edited by

      Memory getting leaky again..

      do we have a way to check on click for a button if the Alt/Ctrl etc keys are pressed?

      HISE Development for hire.
      www.channelrobot.com

      A Christoph HartC 2 Replies Last reply Reply Quote 0
      • A
        aaronventure @Lindon
        last edited by

        @Lindon use a mouse broadcaster, then it's event.altDown and event.ctrDown/event.cmdDown, just like with the panel's mouse callback.

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

          @Lindon add a broadcaster.

          LindonL 1 Reply Last reply Reply Quote 0
          • LindonL
            Lindon @Christoph Hart
            last edited by

            @Christoph-Hart said in AltClick on a button:

            @Lindon add a broadcaster.

            ok thanks guys -- I must spend more time with broadcasters and work out how to set them up.... unless Dave suddenly "does a video"...hint hint

            HISE Development for hire.
            www.channelrobot.com

            A 1 Reply Last reply Reply Quote 0
            • A
              aaronventure @Lindon
              last edited by

              @Lindon think of it like a collection of functions that you can add to from anywhere using method calls that also let you check whether the collection (broadcaster) is defined. super useful overall and great for modularity.

              you can also make them react to certain events by calling any one of the attach methods , but that means the broadcaster needs to have the specific constructor, so one broadcaster can really be attacked to one set of events.

              you can also trigger it at any time by simply calling its variable, meaning that you can pass a broadcaster to any method that requires a function,

              setting them up, until recently, involved visiting the docs page again and again to remind yourself what the different constructors look like, but with the addition of the Broadcaster wizard

              5b1993c3-be59-4bbb-afaa-55d71316818e-image.png

              it is now super easy.

              Once you have it set up, just call addListener from anywhere in your code to dynamically add functionality to a broadcaster. Whether in execution or code inclusion (adding new code modules).

              LindonL 1 Reply Last reply Reply Quote 0
              • LindonL
                Lindon @aaronventure
                last edited by

                @aaronventure well thanks for trying but thats as clear as mud to me...

                HISE Development for hire.
                www.channelrobot.com

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

                  @Lindon lol have you tried using it? It explains it as thoroughly as I'm physically able to and you can click on every help button to get additional information.

                  1. Select a source type
                  2. Add a listener
                  3. Paste the generated code into the onInit callback.
                  LindonL 1 Reply Last reply Reply Quote 0
                  • LindonL
                    Lindon @Christoph Hart
                    last edited by Lindon

                    @Christoph-Hart said in AltClick on a button:

                    @Lindon lol have you tried using it? It explains it as thoroughly as I'm physically able to and you can click on every help button to get additional information.

                    1. Select a source type
                    2. Add a listener
                    3. Paste the generated code into the onInit callback.

                    thanks, and thanks aaron too, for the explanation - when I get some time I will take a run at it....I'm stuck in hot fix hell at the moment...

                    HISE Development for hire.
                    www.channelrobot.com

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

                    26

                    Online

                    1.7k

                    Users

                    11.8k

                    Topics

                    102.8k

                    Posts