HISE Logo Forum
    • Categories
    • 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 123 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.
    • CatABCC
      CatABC
      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 CatABCC 2 Replies Last reply Reply Quote 0
      • d.healeyD
        d.healey @CatABC
        last edited by

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

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

        CatABCC 1 Reply Last reply Reply Quote 0
        • CatABCC
          CatABC @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
          • CatABCC
            CatABC @CatABC
            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 @CatABC
              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.

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

              CatABCC 1 Reply Last reply Reply Quote 0
              • CatABCC
                CatABC @d.healey
                last edited by CatABC

                @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 @CatABC
                  last edited by

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

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

                  CatABCC 1 Reply Last reply Reply Quote 0
                  • CatABCC
                    CatABC @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

                    22

                    Online

                    1.7k

                    Users

                    11.8k

                    Topics

                    102.9k

                    Posts