HISE Logo Forum
    • Categories
    • Register
    • Login

    Best practices for Custom Look Knob value label

    Scheduled Pinned Locked Moved General Questions
    13 Posts 6 Posters 783 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.
    • ustkU
      ustk @ForeverLive
      last edited by ustk

      @ForeverLive I reckon that in your case you want a popup that reacts like a label, but you want the possibility to use up/down arrows... So for this it is a custom panel that you need, not a simple label. This is totally doable, but it's not a beginner friendly process I'd say. You first need to know how to connect a simple label to a slider, that udpates the slider value and is updated from it, so bidirectional.

      Once you can do this, try to replace the label with a panel, and draw the slider value on it. From this point, the panel will need to react to keypress events (setKeypressCallback). Only then you'll be able to click the panel, and take the keyboard events as entry for the characters you need, as well as the UP.DOWN arrows.

      The keyPressCB is explained here:
      https://docs.hise.audio/scripting/scripting-api/scriptpanel/index.html#setkeypresscallback

      Just take your time and do things step by step to understand which function does what action

      Can't help pressing F5 in the forum...

      1 Reply Last reply Reply Quote 1
      • resonantR
        resonant @ForeverLive
        last edited by

        @ForeverLive Check this LAF library:

        Link Preview Image
        hise_laf_library/Examples.md at main · christoph-hart/hise_laf_library

        A public library of HISE UI Customizations (LookAndFeel) with contributions from various developers - hise_laf_library/Examples.md at main · christoph-hart/hise_laf_library

        favicon

        GitHub (github.com)

        ForeverLiveF 1 Reply Last reply Reply Quote 1
        • ForeverLiveF
          ForeverLive @resonant
          last edited by

          @resonant thank you, but again - there is no just simple example of how to implement knob value label that is editable.

          ustkU 1 Reply Last reply Reply Quote 0
          • ustkU
            ustk @ForeverLive
            last edited by

            @ForeverLive

            HiseSnippet 932.3ocsV8taaaCDmxILq1asXEXO.B4SpXoF1o+YCnXXd1IYvnMoFycAaepfl5rMWnHEnn5h2Pe27izdC5NJJaIuZmMXrpOX.d286te2w6N5QFMGxxzFRPy2rHEHAeAc7Bkc9f4LghL7LRvCnWxxrfIzKp+hTVVFDSBBN3GcBBZdH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 in the forum...

            ForeverLiveF 1 Reply Last reply Reply Quote 1
            • ForeverLiveF
              ForeverLive @ustk
              last edited by

              @ustk you are truly the best! Thank you. Yet do you think it is possible to add a keyboard arrows support? To be able to use up and down keys to increment the value by single step? Sorry may be alot of asking.

              ustkU 1 Reply Last reply Reply Quote 0
              • ustkU
                ustk @ForeverLive
                last edited by

                @ForeverLive Have you read my post above?

                Can't help pressing F5 in the forum...

                Christoph HartC ForeverLiveF 2 Replies Last reply Reply Quote 1
                • Christoph HartC
                  Christoph Hart @ustk
                  last edited by

                  Shift click on a knob - baaam, free label!

                  d.healeyD 1 Reply Last reply Reply Quote 2
                  • d.healeyD
                    d.healey @Christoph Hart
                    last edited by d.healey

                    @Christoph-Hart

                    60c53d64-aeb3-4a8e-8e34-f27fbe5c3ff8-image.png

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

                    ForeverLiveF 1 Reply Last reply Reply Quote 1
                    • ForeverLiveF
                      ForeverLive @d.healey
                      last edited by

                      @d-healey i'm totally sure we got some kind of recursion here.

                      1 Reply Last reply Reply Quote 0
                      • ForeverLiveF
                        ForeverLive @ustk
                        last edited by

                        @ustk Oh thank you for the reply! Yes it is exactly what i looking for.

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

                        20

                        Online

                        1.7k

                        Users

                        11.8k

                        Topics

                        102.4k

                        Posts