HISE Logo Forum
    • Categories
    • Register
    • Login

    label.text()

    Scheduled Pinned Locked Moved Feature Requests
    3 Posts 2 Posters 228 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.
    • S
      sakorada
      last edited by

      Hi !
      I think we always use label to show value or information all the time,
      Is it a good idea if we can use

      label.text("Hello World");
      

      maybe it more handy then

      label.set("text",Hello World");
      
      

      What do you think?

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

        .set is a general command that is used to set the properties of all components, since text is a property of a label it makes sense to use set. Although an additional shortcut command wouldn't be a bad thing.

        You can also use setValue e.g. Label1.setValue("Hello World");

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

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

          @d-healey Oh , I didn't know we can use that Label1.setValue("Hello World");
          Thank you

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

          45

          Online

          1.7k

          Users

          11.7k

          Topics

          102.1k

          Posts