Look and feel for ScriptedViewport
-
I know there is a function to register laf for the scrollbar, but I can't find anything about the rest of the component.
I would like to set different look for each item (when using list), for instance set a different alpha on specific text.
I know I can do that using a panel, but I just wanted to ask if it was possible to do with the viewport component? -
@ulrik You can't style the rest of it. You need to use a panel within it and style that.
Just like you helped me with before - https://forum.hise.audio/topic/7505/little-help-please-make-viewport-scroll-with-keypress?_=1684834829809 :)
-
@d-healey thank you David, I had forgotten that one :)
-
You can't style the rest of it. You need to use a panel within it and style that.
Sure, you can style it, but you need to use the listbox model mode, then you get plenty of customization callbacks.
https://docs.hise.audio/scripting/scripting-api/scriptedviewport/index.html#settablemode
-
@Christoph-Hart Does it still function as a list with mouse and keyboard callbacks?
-
@d-healey Try it out, HISE is free and open source :)
-
And you can even override the callbacks to react on Space Key / return key presses or different mouse clicks.
-
@Christoph-Hart said in Look and feel for ScriptedViewport:
@d-healey Try it out, HISE is free and open source :)
Ha I'm so lazy sometimes.