HISE Logo Forum
    • Categories
    • Register
    • Login

    How do I use LAF to draw the dropdown of a comboBox?

    Scheduled Pinned Locked Moved Scripting
    5 Posts 3 Posters 42 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.
    • VirtualVirginV
      VirtualVirgin
      last edited by

      I have LAF drawing the front of the comboBox using

      .registerFunction("drawComboBox", function(g, obj)
      

      How do I draw the dropdown? Is it a separate draw function?

      You can listen to my orchestral mockups here:
      https://www.virtualvirgin.net/

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

        @VirtualVirgin drawPopupMenuItem if I remember correctly

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

        VirtualVirginV 1 Reply Last reply Reply Quote 0
        • VirtualVirginV
          VirtualVirgin @d.healey
          last edited by VirtualVirgin

          @d-healey said in How do I use LAF to draw the dropdown of a comboBox?:

          @VirtualVirgin drawPopupMenuItem if I remember correctly

          Thanks :) That is the correct draw function.
          Do you know how to edit the size of the popupMenu?

          You can listen to my orchestral mockups here:
          https://www.virtualvirgin.net/

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

            @VirtualVirgin I just found this myself. 👍

            	YourComboBox.registerFunction("getIdealPopupMenuItemSize", function(obj)
            	{		 
            		// this will set the width to 200 and height to 50 // adjust both params
            		return [40, 20];
            		 
            		// sets the height to 30 // Uses "default" width and adjust height only
            		//return 30;
            	});
            

            Choose one or the other obviously.

            VirtualVirginV 1 Reply Last reply Reply Quote 2
            • VirtualVirginV
              VirtualVirgin @Chazrox
              last edited by

              @Chazrox Thanks!!

              You can listen to my orchestral mockups here:
              https://www.virtualvirgin.net/

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

              14

              Online

              1.7k

              Users

              11.8k

              Topics

              103.1k

              Posts