HISE Logo Forum
    • Categories
    • Register
    • Login

    How one draw the Save Preset button?

    Scheduled Pinned Locked Moved General Questions
    14 Posts 3 Posters 168 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.
    • ustkU
      ustk
      last edited by ustk

      I found this post, doing it a way like it's part of the dialog https://forum.hise.audio/topic/11771/clicking-area-problems-with-preset-browser/7?_=1738423446986

      Since there doesn't seem to have a dedicated registered function, is that the right way?

      Can't help pressing F5 in the forum...

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

        @ustk Check out my video about customising the preset browser, pretty sure I covered this. Another option you have is to remove the button and make an entirely custom one instead.

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

        ustkU clevername27C 2 Replies Last reply Reply Quote 2
        • ustkU
          ustk @d.healey
          last edited by

          @d-healey So the solution as weird as it is, is to use the technique in the thread above.

          Now I'm on the favorite icon. I can change it, but how can we scale it?
          I can't seem to find a way, and this would make the ColumnRowPadding pointless if the icon isn't resizing accordingly.

          Also, how can we access the Main favourite button?
          It doesn't seem to be part of the dialog like the other buttons...

          Screenshot 2025-02-03 at 22.18.36.png

          Can't help pressing F5 in the forum...

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

            @ustk said in How one draw the Save Preset button?:

            but how can we scale it?

            I don't think you can.

            @ustk said in How one draw the Save Preset button?:

            Also, how can we access the Main favourite button?

            It changes with the icon.

            However I just noticed in my project I'm styling it in the drawDialogButton LAF with if (obj.text == "Show Favorites") But it could be that I added a modification in my fork to make this possible, I can't recall.

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

            ustkU 1 Reply Last reply Reply Quote 1
            • ustkU
              ustk @d.healey
              last edited by ustk

              @d-healey said in How one draw the Save Preset button?:

              @ustk said in How one draw the Save Preset button?:

              but how can we scale it?

              I don't think you can.

              That would be very inconvenient, I'll try to mod the source then...
              Or perhaps just padding my SVG 😉

              @ustk said in How one draw the Save Preset button?:

              Also, how can we access the Main favourite button?

              It changes with the icon.

              Yeah I got that int my screenshot

              However I just noticed in my project I'm styling it in the drawDialogButton LAF with if (obj.text == "Show Favorites") But it could be that I added a modification in my fork to make this possible, I can't recall.

              Try this, but yeah it might be a mod of your own, since I couldn't see "Show Favorites" in obj.text...

              Can't help pressing F5 in the forum...

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

                @d-healey Check out my video about…

                This should be an auto-bot response here. 🤣

                1 Reply Last reply Reply Quote 3
                • d.healeyD
                  d.healey @ustk
                  last edited by

                  @ustk said in How one draw the Save Preset button?:

                  Try this, but yeah it might be a mod of your own,

                  Trying to find the commit where/if I added this...

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

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

                    Here it is - https://github.com/davidhealey/HISE/commit/fa3e67e13ebfe954018a122133b854047deab1b8

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

                    ustkU 2 Replies Last reply Reply Quote 1
                    • ustkU
                      ustk @d.healey
                      last edited by ustk

                      @d-healey Legend! 😎 Checking in a second…

                      Can't help pressing F5 in the forum...

                      1 Reply Last reply Reply Quote 0
                      • ustkU
                        ustk @d.healey
                        last edited by

                        @d-healey This is worth a pull request, isn't it?

                        Can't help pressing F5 in the forum...

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

                          @ustk It would probably need a preprocessor definition or perhaps a data property, otherwise all previous projects that use the preset browser will be affected.

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

                          ustkU 2 Replies Last reply Reply Quote 0
                          • ustkU
                            ustk @d.healey
                            last edited by

                            @d-healey Yeah I know, shame... A better way would be to catch that ShapeButton like it is possible for the TextButton but I don't how and if it is possible...

                            Can't help pressing F5 in the forum...

                            1 Reply Last reply Reply Quote 0
                            • ustkU
                              ustk @d.healey
                              last edited by

                              @d-healey So it finally wasn't necessary. The colour of the fav icon is set with itemColour so I just had to invert the colour I was using in the property editor. This way it is possible to change the icon and the colour.

                              In the end I find the preset browser quite tricky and unintuitive to customise, but hey, it's possible...

                              Can't help pressing F5 in the forum...

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

                                @ustk said in How one draw the Save Preset button?:

                                So it finally wasn't necessary.

                                Oh that's right, I just remembered why I needed to change it, I wanted my button to look like this:

                                bd2607d8-2ab2-48e1-8098-76d72aa2ac7c-image.png

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

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

                                22

                                Online

                                1.7k

                                Users

                                11.8k

                                Topics

                                102.8k

                                Posts