viewport, no method at all?
-
Is there really no way to read a viewport property?
vp.get("width/height/scrollbarThickness...")
I thought they only weren't in the API collection, but it appears they are simply not existing... -
Yup they seem to be missing
-
These properties are accessible now using
.get()
, not sure when that happened. But the API docs are still missing. -
@Christoph-Hart Is it possible to set the width of a viewport in the ScriptInterface?
I am not managing to do it, but I am on an outdated HISE (year-old) version. Is the current version able to do it?
-
@gorangrooves
viewport.set("width", value);
-
@d-healey Thanks. In your example, "viewport" is the name of the variable, correct?
Not working for me. Was this added within the last year?
-
As far as I know it's always been there, it's the same for all components.
But you should use the latest develop branch anyway.
HiseSnippet 916.3ocsV0kaabCDlqroSjZSPSQN.K7SxEoFRMoIAHnHJV1NPH0NBcULZeJfd2YsHDWxEjbssRP5S8XzyPuBsWkdC5MncH2UqV2H35HfpGDz7+2L7iC0XsJFLFklDzdx7bfD74zn4R6zgSYbIYz9jf6ROhYrfNrT0dyyYFCjPBB13kNEAs2j3+7WOeOlfIigkpHjST7X364Yb6RsiG7JtPbHKAlvyZ38iFLJVIGpDpBDOaP6QxYwyXmAGybt0hRB15fDtUoirLKXPe1SkLOZp5BYo+mvM7SEfSnOIBSToZxvobQx3E8pgPB1b7xNeixN+9zi3I7Z8Km.eg2P3xHZNCBZccPp+m.jBZ.oMKgz8nQwZdtcoEGd9L5HIdfjxvQcSnT5Ko0uFPGpPOj1cyXyfC0nPcDcebudOHD+Zmm0oCNtM1vyY5vS3vE4Jsse32EtH3y.6PUVtRhBc2t1iscQ1gKEbIDlVHisbkLTIekTcZeWrZkna7h.e.ldQArSm22occJ10.XFufmXmtckCgeU3C8f5CX1WMB7EX6cbAWUlgLg3Tjiz8pUGyRCbcrxBuV10ifNenS3+1TZ5JsUkKAnWoYG0UecA1UVjcJna1+NGwy1qRX15lQXhKGIMbTIGI41WmCUxGpDINhf62eL8hTMScDsJDhtZ8zrurhlAIKNgH7DGOq9.i3ahlWrIuYz9LKaQ5vLiUKGzVtqoB1GNGu3WxhaS2GLyrpb7Nb8wI1323he4xBOYv7lBdJTsh+POXJvOaJlbZvj.eSWWt6TVt6VUtHAOAz9RcKpm7zrL+Tyx7yCL14tSjs7NRx3IIBXrxvcm3MV.963dx7H967Cp2e+e6k+469kmm0bGIgjwtr4JSSQZJ+R+xsTtHyXQrMJC244FLuw.gIPJqPXCMyv7fW4lAISTd+MrygQxwZ.uO3t9S938G3lKURgfYu55L2d6JCtFn4ND2dBI1XyaBxOgcb8t1cb2THdO5XtMd5pwXqUfQjF9+AFqdY3NzCRSgX6R.tI8vebceF3+n7+fpvxkmcDCoBHwfdbQVD9fXLfUWJAgwQta431kx8bxtIPDHS7B+M9oxXembPkw9KLhjvXs5swkqAbu8bauFDSR+Sssw27Q4v568TZuc64H972FG6Z+utOgr5X9l0HlGtFw7n0HlucMh4wqQLOYMh4oWaLt+AxKJrprxqCnhwG32+FDbfjgLKOKj7OLeLp2B
-
@d-healey Thanks so much, Dave. I'll check it out now. Yeah, I'll use the latest branch for compiling. I just didn't want to introduce additional potential issues right now, as the current version works well.
I'll report how this goes.
-
@d-healey Got it going. Did my head in. I was referencing a non-existing panel, as opposed to the viewport panel. Of course, nothing was happening! Rookie mistakes. Thanks so much, Dave!