HISE Logo Forum
    • Categories
    • Register
    • Login

    Display User Preset name with Label but without Knob

    Scheduled Pinned Locked Moved General Questions
    23 Posts 5 Posters 1.1k 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.
    • Tania GhoshT
      Tania Ghosh
      last edited by

      @Orange @Natan and please tell me how Can I use Another image (Next Btn) because you have used one g.fillTriangle with Math.PI/2 : 1.5 * Math.PI for both.

      Is it applicable for g.drawImage ?

      Tania Ghosh

      1 Reply Last reply Reply Quote 0
      • ?
        A Former User
        last edited by A Former User

        @Tania-Ghosh You can do one simple step:

         // g.setColour(this.data.hover ? 0x20FFFFFF : 0x28FFFFFF);
        /*  g.fillTriangle([0, 0, this.getWidth(), this.getHeight()], this.data.up ? Math.PI/2 : 1.5 * Math.PI); */
        

        And Insert 2 images ( your 2 Images "Prev.png" and "Next.png" and Place it before UpButton and DownButton.

        Additionally you have to adjust the Panel X,Y,Width & Height

        Content.setPropertiesFromJSON(name, {
        		"width": 28,  //Change it according to your Image width
        		"height": 20,  //Change it according to your Image height
        //////// &
        const var UpButton = UserPresetWidgets.createPresetButton("UpButton", 480, 5, true);  //Change it
        const var DownButton = UserPresetWidgets.createPresetButton("DownButton", 440, 5, false);   //Change it
        

        According to your Image Width,Height and X,Y pos.

        End result is something like this..
        Pts.jpg

        1 Reply Last reply Reply Quote 1
        • ?
          A Former User
          last edited by

          @Tania-Ghosh Ptbn.gif

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

          37

          Online

          1.8k

          Users

          12.0k

          Topics

          104.4k

          Posts