HISE Logo Forum
    • Categories
    • Register
    • Login

    Change Key Width using code

    Scheduled Pinned Locked Moved Scripting
    4 Posts 3 Posters 127 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.
    • C
      cynthasiser
      last edited by

      Is there a way to change the key width parameter in code without touching LAF? I want to fit the keyboard to the size of the screen depending on the resolution of my app. My instinct was to edit it with keyboardName.set("Data", xxx), but I don't know how to approach this as the keyboard Data property is like its own function.

      Thank you!

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

        Link Preview Image
        Updating FloatingTile Content Data

        Here's an example that sets the lowest key of the keyboard floating tile. First we get the Data property, which is a string. We convert this to an object usi...

        favicon

        Forum (forum.hise.audio)

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

        C O 2 Replies Last reply Reply Quote 2
        • C
          cynthasiser @d.healey
          last edited by

          @d-healey Perfect, that did it, thanks for the quick response!

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

            @d-healey said in Change Key Width using code:

            Link Preview Image
            Updating FloatingTile Content Data

            Here's an example that sets the lowest key of the keyboard floating tile. First we get the Data property, which is a string. We convert this to an object usi...

            favicon

            Forum (forum.hise.audio)

            Cheers man! Bit of hunting for that trace(data) technique, but that has helped!

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

            61

            Online

            1.7k

            Users

            11.7k

            Topics

            101.7k

            Posts