HISE Logo Forum
    • Categories
    • Register
    • Login

    viewport, no method at all?

    Scheduled Pinned Locked Moved Feature Requests
    9 Posts 3 Posters 384 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.
    • ustkU
      ustk
      last edited by

      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...

      Can't help pressing F5 in the forum...

      1 Reply Last reply Reply Quote 0
      • d.healeyD
        d.healey
        last edited by

        Yup they seem to be missing

        Libre Wave - Freedom respecting instruments and effects
        My Patreon - HISE tutorials
        YouTube Channel - Public HISE tutorials

        1 Reply Last reply Reply Quote 0
        • d.healeyD
          d.healey
          last edited by d.healey

          These properties are accessible now using .get(), not sure when that happened. But the API docs are still missing.

          e35550d1-92ab-4cc3-9d85-150150de8b82-image.png

          Libre Wave - Freedom respecting instruments and effects
          My Patreon - HISE tutorials
          YouTube Channel - Public HISE tutorials

          gorangroovesG 1 Reply Last reply Reply Quote 0
          • gorangroovesG
            gorangrooves @d.healey
            last edited by

            @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?

            Goran Rista
            https://gorangrooves.com

            Handy Drums and Handy Grooves
            https://library.gorangrooves.com

            d.healeyD 1 Reply Last reply Reply Quote 0
            • d.healeyD
              d.healey @gorangrooves
              last edited by

              @gorangrooves viewport.set("width", value);

              Libre Wave - Freedom respecting instruments and effects
              My Patreon - HISE tutorials
              YouTube Channel - Public HISE tutorials

              gorangroovesG 1 Reply Last reply Reply Quote 0
              • gorangroovesG
                gorangrooves @d.healey
                last edited by

                @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?

                Goran Rista
                https://gorangrooves.com

                Handy Drums and Handy Grooves
                https://library.gorangrooves.com

                1 Reply Last reply Reply Quote 0
                • d.healeyD
                  d.healey
                  last edited by

                  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
                  

                  Peek 2022-09-12 22-15.gif

                  Libre Wave - Freedom respecting instruments and effects
                  My Patreon - HISE tutorials
                  YouTube Channel - Public HISE tutorials

                  gorangroovesG 1 Reply Last reply Reply Quote 0
                  • gorangroovesG
                    gorangrooves @d.healey
                    last edited by

                    @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.

                    Goran Rista
                    https://gorangrooves.com

                    Handy Drums and Handy Grooves
                    https://library.gorangrooves.com

                    gorangroovesG 1 Reply Last reply Reply Quote 0
                    • gorangroovesG
                      gorangrooves @gorangrooves
                      last edited by

                      @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!

                      Goran Rista
                      https://gorangrooves.com

                      Handy Drums and Handy Grooves
                      https://library.gorangrooves.com

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

                      17

                      Online

                      1.8k

                      Users

                      12.0k

                      Topics

                      104.7k

                      Posts