HISE Logo Forum
    • Categories
    • Register
    • Login

    Little help please. Adding control of show favourites button from UI components.

    Scheduled Pinned Locked Moved C++ Development
    20 Posts 4 Posters 2.5k 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.
    • d.healeyD
      d.healey @orange
      last edited by

      @orange said in Little help please. Adding control of show favourites button from UI components.:

      @d-healey Interesting. Maybe you can do it with a Broadcaster?

      Actually I'm not sure it will work because the broadcaster is a receiver of data not a sender.

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

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

        I converted it to a TextButton in the HISE source and it works beautifully. @Christoph-Hart Perhaps it should be a text button by default as this is more versatile than a shape button. Or maybe there could be an option to choose, what do you think?

        cdfd2445-4dc2-47aa-84af-023cb9dc49fd-image.png

        Peek 2022-11-15 23-20.gif

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

        StraticahS 1 Reply Last reply Reply Quote 1
        • StraticahS
          Straticah @d.healey
          last edited by Straticah

          @d-healey like the tweaks on the round cards :)

          Yes thats true, i like text plus icon combo, a more laf friendly fav icon would be nice in general also on the tabs imo (width and height, and colour).
          In this example i had to drav lines around my svg so the space matches on each tab. usually the svg is scaled to the max which was too big.
          I also think svg can not have a transparent boarder (which would make scaling easy) since HISE treats it as a path.

          6c1ba456-51e9-4ebe-9773-dfaa4f230196-image.png

          creating user interfaces: www.vst-design.com
          founder @prototype.audio https://www.prototype.audio/

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

            @Straticah Thanks. I have a little more tweaking to do but I think your tips have definitely helped.

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

            StraticahS 1 Reply Last reply Reply Quote 1
            • StraticahS
              Straticah @d.healey
              last edited by Straticah

              @d-healey btw how did you get rid of the grey "notes" bar below the search?
              Also, my seach bar gets cut if i draw it to the right thats strange

              //Search Bar
              browserLaf.registerFunction("drawPresetBrowserSearchBar", function(g, obj)
              {
                  g.setColour(0xFF0C0C0C); 
                  g.fillRoundedRectangle([0, 0, 700, 30], 4.0);
                  g.setGradientFill([(0xFF762EFF), 2, 0.1* obj.area[3], (0xFF2EFFE9), 1.0*obj.area[2] / 1000 - 2, 1.4*obj.area[3]]);
                  g.fillPath(obj.icon, [8, 8, 15, 15]);
                  
              });
              

              2ae641f0-7c53-4ec1-add9-fcedff18b678-image.png

              creating user interfaces: www.vst-design.com
              founder @prototype.audio https://www.prototype.audio/

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

                @Straticah For the notes bar I place a panel over the top of it and make it the same colour as the background and write on it LIBRARY BANK CATEGORY PRESET.

                Did you set the searchBarBounds in the preset browser Data?

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

                StraticahS 1 Reply Last reply Reply Quote 1
                • StraticahS
                  Straticah @d.healey
                  last edited by Straticah

                  @d-healey this will be it i think. Oh i just noticed the headings this looked so good that i thought it was native lol, can you share how you made the text change on an event? I guess you use broadcasters for that which is the new feature isnt it?

                  creating user interfaces: www.vst-design.com
                  founder @prototype.audio https://www.prototype.audio/

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

                    @Straticah Yes it's a broadcaster from which I call a function called setTitles which changes the text.

                        const bc = Engine.createBroadcaster({"id": "PresetBrowser", "args": [component, obj]});
                        
                        bc.attachToComponentMouseEvents(["fltPresetBrowser"], "Clicks Only", "");
                        
                        bc.addListener("mouseAction", "Mouse action for preset browser", function(component, obj)
                        {
                                    if (obj.mouseUp)
                    		{
                    			if (obj.target == "favoriteButton")
                    			{
                    				setTitles(obj.buttonState);
                    			}
                    		}
                        });
                    

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

                    bendursoB 1 Reply Last reply Reply Quote 2
                    • bendursoB
                      bendurso @d.healey
                      last edited by

                      @d-healey Is there some way to track the input of the search bar of the preset browser? Just like this?

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

                        @bendurso Not that I'm aware of

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

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

                        19

                        Online

                        2.0k

                        Users

                        12.7k

                        Topics

                        110.5k

                        Posts