HISE Logo Forum
    • Categories
    • Register
    • Login

    Image shows in expansion but now presets dont

    Scheduled Pinned Locked Moved Unsolved Presets / Scripts / Ideas
    preset browserexpansionimages
    36 Posts 3 Posters 181 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.
    • J
      Jaytove
      last edited by

      I have finally got my expansion folders to show the image but now when you click on the image no
      text will show up in any other colum in the Preset browser, if i change my script from "drawPresetBrowserListItem" to createPresetBrowserListItem the script will still complie but the image in the expansion disapears and all the text shows up how can i keep the image in my expansion colum and have the text show up in the preset colum in the browser??
      Anyone Please

      ChazroxC J 2 Replies Last reply Reply Quote 0
      • ChazroxC
        Chazrox @Jaytove
        last edited by

        @Jaytove drop a sample of your "drawPresetBrowserListItem" section.

        1 Reply Last reply Reply Quote 0
        • J
          Jaytove @Jaytove
          last edited by

          @Jaytove said in Image shows in expansion but now presets dont:

          ,

          Screenshot 2025-10-12 054959.png Screenshot 2025-10-12 055049.png

          1 Reply Last reply Reply Quote 0
          • J
            Jaytove
            last edited by

            Screenshot 2025-10-12 084547.png none of the text will show in any other colum

            d.healeyD J 2 Replies Last reply Reply Quote 0
            • d.healeyD
              d.healey @Jaytove
              last edited by

              @Jaytove said in Image shows in expansion but now presets dont:

              none of the text will show in any other colum

              In your look and feel function you are only drawing stuff for the expansion column. You need to draw the other columns too.

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

              1 Reply Last reply Reply Quote 0
              • J
                Jaytove @Jaytove
                last edited by

                @d-healey do i have to write a draw function for each colulm im only going to use the expansion colum and preset colum how do i get the presets to show in the preset browser? i dont want an image for the presets how can i write in my script just to show the name of the presets?

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

                  @Jaytove said in Image shows in expansion but now presets dont:

                  do i have to write a draw function for each colulm

                  Yes, as soon as you use drawPresetBrowserFromListItem you are responsible for drawing every list item in every column.

                  I have a video on Patreon that shows how to customise the preset browser using laf: https://www.patreon.com/posts/customising-with-105377992

                  There are also a couple of videos on my YouTube channel that might be useful.

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

                  J 1 Reply Last reply Reply Quote 0
                  • J
                    Jaytove @d.healey
                    last edited by

                    @d-healey i joined yiur pateron and watched the video but without getting rid of the image this is what i getScreenshot 2025-10-12 110914.png

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

                      @Jaytove I need to see your code

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

                      J 2 Replies Last reply Reply Quote 0
                      • J
                        Jaytove @d.healey
                        last edited by

                        @d-healey Screenshot 2025-10-13 010127.png Screenshot 2025-10-13 010107.png Screenshot 2025-10-13 010107.png

                        1 Reply Last reply Reply Quote 0
                        • J
                          Jaytove @d.healey
                          last edited by

                          @d-healey sorry i didnt mean to load the same one 2 times the bottom one is before the top one in that exact order i apperiacte your help i have been going at this for four days now and i just cant figure it our i litteraly have watched every video you have to do with this and still i dont understand it

                          ChazroxC 1 Reply Last reply Reply Quote 0
                          • ChazroxC
                            Chazrox @Jaytove
                            last edited by

                            @Jaytove in your "drawPresetBrowserItem" function, you draw the image in the expansion column but dont specify what needs to be drawn in the other columns.

                            in your script above:

                            // After you...
                            if (obj.columnIndex == 1) // Isnt expansion colum '0' ? idk.
                            {
                            
                            g.draw expansion column images (instead of drawing text)
                            
                            }
                            // You need to
                            else
                            {
                            
                            g.draw the rest of the text for the other columns. 
                            
                            }
                            
                            
                            J 2 Replies Last reply Reply Quote 0
                            • J
                              Jaytove @Chazrox
                              last edited by

                              @Chazrox i m not sure how to write it so it effects each colum with out effecting the next if that makes any sense

                              J 1 Reply Last reply Reply Quote 0
                              • J
                                Jaytove @Jaytove
                                last edited by

                                @Chazrox the expansion column is -1

                                1 Reply Last reply Reply Quote 0
                                • J
                                  Jaytove @Chazrox
                                  last edited by

                                  @Chazrox how do i specify what goes in the other
                                  columns

                                  ChazroxC 1 Reply Last reply Reply Quote 0
                                  • ChazroxC
                                    Chazrox @Jaytove
                                    last edited by Chazrox

                                    @Jaytove add the 'else' statement that I added in the example above. Do you know how to g.drawAlignedText()? Thats where that would go. That should leave your expansion columns images how they are, and draw the text for the rest of the columns. Thats what the 'else' is for.

                                    J 1 Reply Last reply Reply Quote 0
                                    • J
                                      Jaytove @Chazrox
                                      last edited by

                                      @Chazrox Screenshot 2025-10-13 023442.png when i put code this it takes the image out of expansion column

                                      ChazroxC d.healeyD 3 Replies Last reply Reply Quote 0
                                      • ChazroxC
                                        Chazrox @Jaytove
                                        last edited by

                                        @Jaytove your format got messed up copy pasting. your brackets are out of place and you have a semicolon after your 'if statement' that doesnt need to be there. copy the format I showed you above.

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

                                          @Jaytove you need code in both parts. Can you post code rather than images, it makes it easier if we want to test it ourselves.

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

                                          1 Reply Last reply Reply Quote 0
                                          • ChazroxC
                                            Chazrox @Jaytove
                                            last edited by

                                            @Jaytove use this button and paste your snippet of your code in between the given area for your code.

                                            Screenshot 2025-10-13 at 2.39.21 AM.png

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

                                            21

                                            Online

                                            2.0k

                                            Users

                                            12.7k

                                            Topics

                                            109.9k

                                            Posts