HISE Logo Forum
    • Categories
    • Register
    • Login

    Combobox to change background image of plugin

    Scheduled Pinned Locked Moved Scripting
    6 Posts 2 Posters 386 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.
    • ThinkTankT
      ThinkTank
      last edited by

      This is probably super simple, but what would be the simplest way to change a background image with a combo box?

      Without problems that test the limits of your abilities, you can not expand them.

      Oli UllmannO 1 Reply Last reply Reply Quote 0
      • Oli UllmannO
        Oli Ullmann @ThinkTank
        last edited by

        @ThinkTank
        You can use the Paint routine for panels. For most other things, use Look and Feel. Draw the background image based on the combo box selection (if-statement). You then integrate a repaint() function for the element to be drawn into the callback function of the combo box.

        ThinkTankT 1 Reply Last reply Reply Quote 0
        • ThinkTankT
          ThinkTank @Oli Ullmann
          last edited by

          @Oli-Ullmann

          Thanks, that helps! Slowly getting a hang for this!

          Without problems that test the limits of your abilities, you can not expand them.

          Oli UllmannO 1 Reply Last reply Reply Quote 1
          • Oli UllmannO
            Oli Ullmann @ThinkTank
            last edited by

            @ThinkTank
            You are welcome. :-) What do you want to use? A panel? A button? I could create a small snippet for you so that you have a starting point

            ThinkTankT 1 Reply Last reply Reply Quote 1
            • ThinkTankT
              ThinkTank @Oli Ullmann
              last edited by

              @Oli-Ullmann

              Already made it, but thanks anyway.
              Just needed guidance on the simplest way 👍

              Without problems that test the limits of your abilities, you can not expand them.

              Oli UllmannO 1 Reply Last reply Reply Quote 0
              • Oli UllmannO
                Oli Ullmann @ThinkTank
                last edited by

                @ThinkTank
                Great! Then have a nice day! :-)

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

                22

                Online

                1.7k

                Users

                11.8k

                Topics

                102.5k

                Posts