HISE Logo Forum
    • Categories
    • Register
    • Login

    Automatically fit standalone app / plugin within desktop screen?

    Scheduled Pinned Locked Moved General Questions
    3 Posts 2 Posters 299 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.
    • gorangroovesG
      gorangrooves
      last edited by

      I created a simple script that checks the user's desktop size, calculates the aspect ratio, and then automatically resizes the app's GUI if it is bigger than the user's desktop. It checks both height and width against the aspect ratio to determine which to use for sizing.

      That all works great for adjusting the size of the GUI. HOWEVER, the resulting GUI of the standalone app is not centered within the screen, so the top window header that allows for moving the app around is outside of reach. That renders this function useless. The user now can't even reach the plugin's settings to readjust the zoom ratio.

      My desktop has a scale of 1.5, so when I set it to 100% I can see that the GUI was aligned to the top left corner of my "unscaled" desktop. If I try the same on the unscaled desktop, then the resulting GUI is once again outside of the desktop. Changing scale of my desktop gets the GUI in view, but that is not a good or intuitive UX.

      Are there any ways or ideas on how to ensure a plugin or standalone app always automatically fits within users's desktop size upon launch?

      Goran Rista
      https://gorangrooves.com

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

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

        @gorangrooves I reckon I went down this road a while ago and discovered all the necessary functions for window management are inside Juce so there should be a non too complex way to create an API in Hise

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

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

          @ustk Thanks. So, this would be something for @Christoph-Hart to implement at some point if he deems it worthwhile? :beaming_face_with_smiling_eyes:

          Goran Rista
          https://gorangrooves.com

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

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

          10

          Online

          1.7k

          Users

          11.8k

          Topics

          102.4k

          Posts