HISE Logo Forum
    • Categories
    • Register
    • Login

    Display problems Windows

    Scheduled Pinned Locked Moved General Questions
    17 Posts 3 Posters 285 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.
    • Oli UllmannO
      Oli Ullmann
      last edited by

      Hello everyone,

      I added several buttons to my UI and built an arp/sequencer. When the zoom is set to 100%, everything is displayed correctly. As soon as the zoom is set below 100%, the buttons partially “merge”. As if they are overlapping.

      I only have this problem under Windows. This problem does not occur on the Mac.

      Does anyone have any idea how I can solve the problem on Windows?

      Here are two screenshots to make the problem clear.

      100%
      100.PNG

      75%
      75.PNG

      Thank you very much
      Oli

      Oli UllmannO A 2 Replies Last reply Reply Quote 0
      • Oli UllmannO
        Oli Ullmann @Oli Ullmann
        last edited by

        PS. I use Settings.setZoomLevel(); to set the size of the UI.

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

          @Oli-Ullmann I must be blind, those images look the same to me, which buttons merge?

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

          Oli UllmannO 1 Reply Last reply Reply Quote 0
          • Oli UllmannO
            Oli Ullmann @d.healey
            last edited by

            @d-healey
            I have drawn a red box around buttons that merge.

            100% (everything is ok)
            100.png

            75% (Display error)
            75.png

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

              @Oli-Ullmann Are you using a panel to create the grid or are those individual buttons?

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

              Oli UllmannO 1 Reply Last reply Reply Quote 0
              • Oli UllmannO
                Oli Ullmann @d.healey
                last edited by

                @d-healey
                These are individual buttons. I know, a panel would probably have been better, but at the moment I have solved it with buttons...

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

                  Yeah a panel is definitely a better option... it's not too late to change your ways :D

                  You can try Content.setUseHighResolutionForPanels(true); although as the name implies I think it only affects panels but maybe it also applies to laf for buttons - I assume those buttons are using laf?

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

                  Oli UllmannO 1 Reply Last reply Reply Quote 1
                  • Oli UllmannO
                    Oli Ullmann @d.healey
                    last edited by

                    @d-healey
                    Maybe the variant with panel will come in an update... 😝

                    Yes exactly, the buttons use laf and are drawn according to their status (0/1).

                    Many thanks for your idea! I'll try it out right away.

                    1 Reply Last reply Reply Quote 0
                    • A
                      aaronventure @Oli Ullmann
                      last edited by

                      @Oli-Ullmann could just be the way scaling works differently on different systems.

                      There are for sure some visual differences between macOS and Win. You'll also find that some font sizes are not exactly the same, kerning pairs not working on Win, gradients being worse on Windows etc.

                      Oli UllmannO 1 Reply Last reply Reply Quote 1
                      • Oli UllmannO
                        Oli Ullmann @aaronventure
                        last edited by

                        @aaronventure
                        Yes, I have included the font so that it is displayed in the same way on both systems. (Hopefully)

                        Also, the download behavior on the Mac seems to be different than on Windows... There seem to be some differences.

                        d.healeyD A 2 Replies Last reply Reply Quote 0
                        • d.healeyD
                          d.healey @Oli Ullmann
                          last edited by

                          @Oli-Ullmann said in Display problems Windows:

                          Yes, I have included the font so that it is displayed in the same way on both systems.

                          Test it, I find I often have to adjust the size of fonts on Windows to match the appearance on Mac and Linux.

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

                          Oli UllmannO 2 Replies Last reply Reply Quote 1
                          • Oli UllmannO
                            Oli Ullmann @d.healey
                            last edited by

                            @d-healey
                            Thanks for the tip! I will definitely do it.

                            1 Reply Last reply Reply Quote 0
                            • A
                              aaronventure @Oli Ullmann
                              last edited by

                              @Oli-Ullmann said in Display problems Windows:

                              Yes, I have included the font so that it is displayed in the same way on both systems. (Hopefully)

                              When it does happen, including it won't make a difference; it comes down to how the OS renders the typeface. I don't know whether it's a format issue, or some internal settings or metadata of the file.

                              Oli UllmannO 1 Reply Last reply Reply Quote 1
                              • Oli UllmannO
                                Oli Ullmann @aaronventure
                                last edited by

                                @aaronventure
                                Ah, good to know! :-)

                                1 Reply Last reply Reply Quote 0
                                • Oli UllmannO
                                  Oli Ullmann @d.healey
                                  last edited by

                                  @d-healey @aaronventure
                                  Just for your information: The solution was to use g.fillRect instead of g.fillAll.

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

                                    @Oli-Ullmann Oh that's interesting!

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

                                    Oli UllmannO 1 Reply Last reply Reply Quote 0
                                    • Oli UllmannO
                                      Oli Ullmann @d.healey
                                      last edited by

                                      @d-healey
                                      It's actually not the first time that “fillRect” works better than “fillAll” for me. I can't remember why I changed my mind before, but as I said, it has happened before. Also on the Mac.

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

                                      9

                                      Online

                                      1.7k

                                      Users

                                      11.8k

                                      Topics

                                      103.1k

                                      Posts