Forum
    • Categories
    • Register
    • Login

    It´s possible to change Popup Data in execution time?

    Scheduled Pinned Locked Moved Scripting
    9 Posts 3 Posters 38 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.
    • jadgJ
      jadg
      last edited by jadg

      When we use Content.setPopupData() is always on init function, but you can,t change really PopupData in execution time , so you need to restart plugiin(or standalone app ) to changes take effect. It,s possible to make in other way?

      David HealeyD 1 Reply Last reply Reply Quote 0
      • David HealeyD
        David Healey @jadg
        last edited by

        @jadg What's the reason for wanting to change it after on init?

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

        jadgJ 1 Reply Last reply Reply Quote 0
        • jadgJ
          jadg @David Healey
          last edited by

          @David-Healey Because user can change colour theme after init

          David HealeyD 1 Reply Last reply Reply Quote 0
          • David HealeyD
            David Healey @jadg
            last edited by

            @jadg Aha got it. One thing I recently had Claude add was being able to set the properties from variables. I haven't tested if this works after on init but it might do.

            https://github.com/christophhart/HISE/pull/893

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

            1 Reply Last reply Reply Quote 0
            • jadgJ
              jadg
              last edited by

              Really I have a function to try change color for all objects via LAF, but Content.sePopupData don´t take effect until reinitialize o recompile:

              inline function changeColourScheme(textColour,ButtonTextColour,sliderBackLight)
              {
              SliderBackLight=sliderBackLight;
              buttonTextColor=ButtonTextColour;
              mainTextColour=textColour;
              for(c in Content.getAllComponents(""))
              {
              c.set("textColour",textColour);
              c.sendRepaintMessage();

                  }
                 
                for(i=0;i<53;i++){
                Engine.setKeyColour(i,Colours.withAlpha(textColour, 0.35
                ));}  
                for(i=53;i<127;i++){
                	  Engine.setKeyColour(i,Colours.withAlpha(textColour, 0.04
                	  ));}  
              

              // set the popup styling
              Content.setValuePopupData({
              "fontName":"Oxygen",
              "fontSize": 14,
              "borderSize": 0.5,
              "borderRadius":4,
              "margin":2,
              "bgColour":BGColour ,
              "itemColour":Colours.withAlpha(BGColour , 0.8) ,
              "itemColour2":Colours.withAlpha(BGColour, 1),
              "textColour": Colours.withAlpha(textColour, 0.35
              )
              });

              1 Reply Last reply Reply Quote 0
              • jadgJ
                jadg
                last edited by

                This is that seems in real time

                Captura de pantalla 2026-03-06 222144.png

                Captura de pantalla 2026-03-06 222242.png

                1 Reply Last reply Reply Quote 0
                • jadgJ
                  jadg
                  last edited by jadg

                  Every object colors are OK (in real time) except in ValuePopups, that preserves the colours from the last initialization...

                  Maybe the solution would be somethig like "laf.registerFunction("drawValuePopup", function(g, obj)" ... if posible...

                  ustkU 1 Reply Last reply Reply Quote 0
                  • ustkU
                    ustk @jadg
                    last edited by

                    @jadg you might gain in flexibility making your own popup system

                    Hise made me an F5 dude, any other app just suffers...

                    jadgJ 1 Reply Last reply Reply Quote 0
                    • jadgJ
                      jadg @ustk
                      last edited by jadg

                      @ustk Specifically ValuePopups for sliders? Maybe using ScriptSlider.setValuePopupFunction ?
                      I,m afraid this way only affects the proper text returned value but not the text formating and color.
                      What way can you propose me?

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

                      18

                      Online

                      2.2k

                      Users

                      13.5k

                      Topics

                      117.2k

                      Posts