@Christoph-Hart
Unfortunately, when I try to transfer this to my own project, it doesn't work. I get the following error code for the following line:
g.drawAlignedText(Engine.getTextForValue(v[0], this.data.range.mode) + " - " + Engine.getTextForValue(v[1], this.data.range.mode), tb, "centred");
API call with undefined parameter 0 {{SW50ZXJmYWNlfHw2MjR8MjR8MTA2}}
Unfortunately, I can't figure out what the problem is.
I created a slider and a panel with the same names and copied the code into my new project. Is there anything else I need to do?
Even if I delete the panel in the snippet and add a new panel with the same name, it still doesn't work.
I have the feeling that this.data.range is not defined.