HISE Logo Forum
    • Categories
    • Register
    • Login

    How to Customize Preset Browser OK-Cancel Button

    Scheduled Pinned Locked Moved General Questions
    9 Posts 2 Posters 566 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

      I would like to change the default appearance of my HISE project's Preset browser OK-Cancel Button. Tried LAF but no luck.!(it only changes BG Colour, Text Area etc. BBT.png

      Some may ask why do I want to change the Button ? Answer is "Mismatch". The appearance of these Buttons don't match with my Rest of the Theme and style.

      I want to change the button color,
      Button Text Font and
      Button Shape.
      Please excuse the PR way.. I want to change with LAF only.

      DanHD 1 Reply Last reply Reply Quote 0
      • DanHD
        DanH @Tania Ghosh
        last edited by DanH

        @Tania-Ghosh there's an LAF for all the main dialog buttons (thanks @d-healey):

        laf.registerFunction("drawDialogButton", function(g, obj)
        

        However this changes all the dialog buttons and can affect the other buttons in the Preset Browser, so be careful.

        Link Preview Image
        LAF ScriptSlider?

        @d-healey said in LAF ScriptSlider?: laf.registerFunction("drawDialogButton", function(g, obj) Thanks David :)

        favicon

        Forum (forum.hise.audio)

        DHPlugins / DC Breaks | Artist / Producer / DJ / Developer
        https://dhplugins.com/ | https://dcbreaks.com/
        London, UK

        Tania GhoshT 1 Reply Last reply Reply Quote 0
        • Tania GhoshT
          Tania Ghosh @DanH
          last edited by

          @DanH said in How to Customize Preset Browser OK-Cancel Button:

          laf.registerFunction("drawDialogButton", function(g, obj)

          No it will not change Preset OK-Cancel button..

          It will only affect on Add,Rename,Delete.

          DanHD 1 Reply Last reply Reply Quote 0
          • DanHD
            DanH @Tania Ghosh
            last edited by DanH

            @Tania-Ghosh oh yeah, maybe it was this one:

            laf.registerFunction("drawPresetBrowserDialog", function(g, obj)
            {
            
            });
            

            PS - it's all in the docs:

            Link Preview Image
            HISE | Docs

            favicon

            (docs.hise.audio)

            DHPlugins / DC Breaks | Artist / Producer / DJ / Developer
            https://dhplugins.com/ | https://dcbreaks.com/
            London, UK

            Tania GhoshT 1 Reply Last reply Reply Quote 0
            • Tania GhoshT
              Tania Ghosh @DanH
              last edited by Tania Ghosh

              @DanH said in How to Customize Preset Browser OK-Cancel Button:

              laf.registerFunction("drawPresetBrowserDialog", function(g, obj)
              {

              });

              No it will not work either...
              TTS.jpg

              I want to give the OK-Cancel button to More & Save Presets button looks.

              DanHD 1 Reply Last reply Reply Quote 0
              • DanHD
                DanH @Tania Ghosh
                last edited by DanH

                @Tania-Ghosh Did you try it with

                laf.registerFunction("drawDialogButton", function(g, obj)
                

                as well?

                I think you need both but the problem is they affect too many other buttons etc

                DHPlugins / DC Breaks | Artist / Producer / DJ / Developer
                https://dhplugins.com/ | https://dcbreaks.com/
                London, UK

                Tania GhoshT 1 Reply Last reply Reply Quote 0
                • Tania GhoshT
                  Tania Ghosh @DanH
                  last edited by Tania Ghosh

                  This post is deleted!
                  DanHD 1 Reply Last reply Reply Quote 0
                  • DanHD
                    DanH @Tania Ghosh
                    last edited by

                    @Tania-Ghosh Better you send a small snippet

                    DHPlugins / DC Breaks | Artist / Producer / DJ / Developer
                    https://dhplugins.com/ | https://dcbreaks.com/
                    London, UK

                    Tania GhoshT 1 Reply Last reply Reply Quote 0
                    • Tania GhoshT
                      Tania Ghosh @DanH
                      last edited by

                      @DanH No problem it's now working after restarting HISE.

                      OK-Cancel Buttons changed as well.

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

                      67

                      Online

                      1.7k

                      Users

                      11.8k

                      Topics

                      103.0k

                      Posts