HISE Logo Forum
    • Categories
    • Register
    • Login

    How to set the Centre of Sliderpack?

    Scheduled Pinned Locked Moved Solved Scripting
    5 Posts 2 Posters 105 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.
    • clevername27C
      clevername27
      last edited by

      Is it possible to set the centre value of a Sliderpack, so a double-click sends it there, and it visually appears in the middle? Slider has that call in the API, but I don't see it for Sliderpacks. (Is this a thing done in the LAF?) Thanks.

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

        Double click for a slider pack (or slider) will set it to its default value, not the middle position.

        There is no middle position property for sliderpacks but you can create the same thing through laf. I think by default the middle position will be half way between the min and max values.

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

        clevername27C 1 Reply Last reply Reply Quote 1
        • clevername27C
          clevername27 @d.healey
          last edited by clevername27

          @d-healey Thank you Dave, I didn't think of that - yes, that works. Could I pls ask another question - if I set a default value for a component, and I load a preset as an INIT, that will write over the default value, yes? Or, another way to put it, is the default value stored with the widget in the XML file, or is it part of a preset file? Thanks, man.

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

            @clevername27 The default value is a property of the component. The only thing that is stored/restored with the preset is the component's current value.

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

            clevername27C 1 Reply Last reply Reply Quote 1
            • clevername27C
              clevername27 @d.healey
              last edited by

              @d-healey Thank you, Dave.

              1 Reply Last reply Reply Quote 0
              • clevername27C clevername27 has marked this topic as solved on
              • First post
                Last post

              48

              Online

              1.7k

              Users

              11.7k

              Topics

              102.1k

              Posts