HISE Logo Forum
    • Categories
    • Register
    • Login

    [bug] Setting Combox Content via Script Looses "useCustomPopup" Rendering.

    Scheduled Pinned Locked Moved Bug Reports
    4 Posts 2 Posters 209 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.
    • clevername27C
      clevername27
      last edited by clevername27

      1. Fill the contents of a combobox via the Inspector, using useCustomPopup formatting (e.g. dividers).

      2. Create a list of items (including useCustomPopup formatting) and replace the contents of the combobox.

      3. Via script, set the value to zero.

      When you click on the combobox, the rendering (of the pop-up menu) reverts to non-useCustomPopup rendering. However, the switch is still on in the Inspector. If you turn the switch off and then on, useCustomPopup rendering returns. (Until you replace the contents again.)


      macOS Sonoma
      Various Dev builds

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

        Got a snippet?

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

        clevername27C 2 Replies Last reply Reply Quote 1
        • clevername27C
          clevername27 @d.healey
          last edited by

          @d-healey I'll see if I can do - I can certainly post a screen capture. Thanks for your response.

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

            @d-healey I'll aim to get a snippet, but maybe this is enough.

            Here's the code:

            // ------------- Mic Target Combos
            
            const var mictarget_Options = [	"Kick Drum",
            								"Snare Drum",
            								"Tom",
            								"Hi-Hat",
            								"Ride",
            								"Bell Cymbal",
            								"Splash Cymbal",
            								"China Cymbal",
            								"Crash Crash Cymbal",
            								"Cymbal Stack",
            								"___",
            								"~~Custom~~" ];
            								
            const var list_mictarget_Options = mictarget_Options.join("\n");
            
            combo_GLOBAL_CreateSession_Viewport_MicTarget_1.set("items", list_mictarget_Options);
            

            And here's what happens:

            Untitled.gif

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

            37

            Online

            1.8k

            Users

            12.0k

            Topics

            104.5k

            Posts