HISE Logo Forum
    • Categories
    • Register
    • Login

    Look & Feel Slider textbox?

    Scheduled Pinned Locked Moved Scripting
    14 Posts 5 Posters 677 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.
    • ulrikU
      ulrik @d.healey
      last edited by

      @d-healey because you can't close a label with esc, and the label CB don't trigger if nothing is changed in it.

      Hise Develop branch
      MacOs 15.3.1, Xcode 16.2
      http://musikboden.se

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

        @ulrik Why do you want to trigger a callback if nothing has changed?

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

        ulrikU 1 Reply Last reply Reply Quote 0
        • ulrikU
          ulrik @d.healey
          last edited by

          @d-healey with a slider, if you activate the text box and press esc, it will close, that is not possible to do with a label, maybe I explained myself poorly.

          Hise Develop branch
          MacOs 15.3.1, Xcode 16.2
          http://musikboden.se

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

            @ulrik Pressing esc works here with a label.

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

            ulrikU 1 Reply Last reply Reply Quote 1
            • ulrikU
              ulrik @d.healey
              last edited by

              @d-healey Haha, yes it does, have it always worked like this?

              However I use the linear sliders in this project so, is there a way?

              Hise Develop branch
              MacOs 15.3.1, Xcode 16.2
              http://musikboden.se

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

                @ulrik You can use a slider and a label ;)

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

                ulrikU 1 Reply Last reply Reply Quote 2
                • ulrikU
                  ulrik @d.healey
                  last edited by

                  @d-healey 😂

                  Hise Develop branch
                  MacOs 15.3.1, Xcode 16.2
                  http://musikboden.se

                  1 Reply Last reply Reply Quote 0
                  • Dan KorneffD
                    Dan Korneff
                    last edited by

                    Is there a way to set the textBox position and size with LAF?

                    Dan Korneff - Producer / Mixer / Audio Nerd

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

                      @Dan-Korneff Don't know about LAF, I don't see any registerFunction option for the textInput.

                      But you can use the new Content.showModalTextInput() function.

                      https://forum.hise.audio//post/69512

                      It takes two args, one is an object that defines what it looks like, which font to use, colors etc., and the other is a function where ok = 1 if enter was pressed, and 0 for any other case (esc, or click elsewhere), so you can wrap the logic into if (ok), check for out of bounds, then set the control value to the input. Just be aware that the input return is a string, so you'll need to parseInt() or parseFloat() before setting the control value.

                      You can trigger it via a broadcaster.

                      Dan KorneffD 1 Reply Last reply Reply Quote 0
                      • Dan KorneffD
                        Dan Korneff @aaronventure
                        last edited by

                        @aaronventure I must have missed that thread. showModalTextInput looks like it'll do the job

                        Dan Korneff - Producer / Mixer / Audio Nerd

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

                        16

                        Online

                        1.8k

                        Users

                        12.1k

                        Topics

                        104.9k

                        Posts