HISE Forum
    • Unread
    • Recent
    • Admin
    • Register
    • Login

    How to set the font of the prompt text and buttons in the sound library location interface?

    Scheduled Pinned Locked Moved General Questions
    8 Posts 2 Posters 157 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.
    • Felix WF
      Felix W
      last edited by

      How to set the font of the prompt text and buttons in the sound library location interface?
      I used the following code but it didn't work, what should I do?

      Engine.setGlobalFont("myhtw17");
      const laf = Content.createLocalLookAndFeel();
      laf.registerFunction("drawDialogButton", function(g, obj)
      {  
      
      if (obj.text == "Select")
         {
      
            g.setFont("myhtw17", 12.0); 
         }
      });
      

      47fff402-512e-41b8-b57c-5c01d4770aa7-image.png

      //I am a new student at HISE._
      //Windows11 & MacOS Ventura 13.6.7_

      d.healeyD Felix WF 2 Replies Last reply Reply Quote 0
      • d.healeyD
        d.healey @Felix W
        last edited by

        @CatABC You need to use global look and feel rather than local. And you will need to draw the whole button.

        Free HISE Bootcamp Full Course for beginners.
        YouTube Channel - Public HISE tutorials
        My Patreon - HISE tutorials

        Felix WF 1 Reply Last reply Reply Quote 0
        • Felix WF
          Felix W @d.healey
          last edited by

          @d-healey I see,Thanks David~!🍻

          //I am a new student at HISE._
          //Windows11 & MacOS Ventura 13.6.7_

          1 Reply Last reply Reply Quote 0
          • Felix WF
            Felix W @Felix W
            last edited by

            I can now draw the buttons of the dialog box, but how do I LAF the prompt words above? Please help me

            "Please click below to point to the location where you've already installed the samples."
            

            //I am a new student at HISE._
            //Windows11 & MacOS Ventura 13.6.7_

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

              @CatABC I'm not sure but you might need to do that in the drawAlertWindow laf function. Be aware though that this will affect all alert windows, so you'll need to make the function generic enough to handle any text nicely.

              Free HISE Bootcamp Full Course for beginners.
              YouTube Channel - Public HISE tutorials
              My Patreon - HISE tutorials

              Felix WF 1 Reply Last reply Reply Quote 0
              • Felix WF
                Felix W @d.healey
                last edited by Felix W

                @d-healey I used

                drawAlertWindow
                
                getAlertWindowMarkdownStyleData
                

                but AlertWindow can only modify the Title, and getAlertWindowMarkdownStyleData cannot customize the displayed text content..

                //I am a new student at HISE._
                //Windows11 & MacOS Ventura 13.6.7_

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

                  @CatABC In that case it might not be possible to change it through scripting.

                  Free HISE Bootcamp Full Course for beginners.
                  YouTube Channel - Public HISE tutorials
                  My Patreon - HISE tutorials

                  Felix WF 1 Reply Last reply Reply Quote 0
                  • Felix WF
                    Felix W @d.healey
                    last edited by

                    @d-healey All right😩 , thanks very much,I tried changing in CPP

                    //I am a new student at HISE._
                    //Windows11 & MacOS Ventura 13.6.7_

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

                    11

                    Online

                    2.1k

                    Users

                    13.0k

                    Topics

                    112.3k

                    Posts