HISE Logo Forum
    • Categories
    • Register
    • Login

    label suffix?

    Scheduled Pinned Locked Moved General Questions
    3 Posts 2 Posters 249 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.
    • 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.healeyD
        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

          23

          Online

          1.7k

          Users

          11.9k

          Topics

          103.4k

          Posts