HISE popup
-
Greetings. I know it could be stupid question but is it possible to change fade time of a slider value popup? And is it possible to style it? Thank you.
-
@ForeverLive You can't change the fade time without editing the source code. You can change the styling with this function:
Content.setValuePopupData( { "fontName": "bold", "fontSize": 20, "borderSize": 2, "borderRadius": 5, "margin": 10, "bgColour": Colours.lightgrey, "itemColour": 0xa8000000, "itemColour2": 0xa8000000, "textColour": Colours.white });
-
@d-healey what you mean by changing source code? Source code of HISE or the component? My apologies, i'm not very familiar with this.
-
@ForeverLive HISE (or possibly JUCE depending on where the code is for the value popup).
-
@d-healey ok, i assume it would be easier to not use popup at all. Thank you for the answer.
-
@ForeverLive Why would you assume that? Looks like an easy edit to me.
-
@d-healey Is it in HISE source code? Should i recompile HISE after that edit or it's in project JUCE code? Sorry for lot's of questions.
-
@ForeverLive Yes it's in the HISE source code. Yes you need to recompile HISE for the change to take effect. Stop apologizing, these are good questions :)
The function is here - https://github.com/christophhart/HISE/blob/develop/hi_scripting/scripting/api/ScriptComponentWrappers.cpp#L791
I haven't tested it, I'm just guessing that this is the code that needs to be changed.