Forum

    • Register
    • Login
    • Search
    • Categories

    label suffix?

    General Questions
    2
    3
    134
    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.
    • Y
      yall last edited by

      Hello, I don't remember a stupid thing.
      I have a label in which is displayed the value of my buttons.
      label.set ("text", value);
      in the reminder of each button.
      however I would like to add the suffix Hz or Db or% for each button.
      I can create a second label to add the suffix but I would prefer to have only one. how can I modify this line> set ("text", value)? thank you

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

        label.set("text" value + suffix);

        The knob has a suffix property that you can use.

        label.set("text", value + knob.get("suffix"));

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

        Y 1 Reply Last reply Reply Quote 0
        • Y
          yall @d.healey last edited by

          @d-healey yes I put the suffixes on the knobs. it works 🙂 thanks

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

          20
          Online

          1.2k
          Users

          7.0k
          Topics

          64.7k
          Posts