Coder Social home page Coder Social logo

Comments (12)

MidCtrlDel avatar MidCtrlDel commented on June 1, 2024

I am also having this issue, I hope the attached log file can help! πŸ‘
BookLibConnect.FormsTest_2022-02-05_001.log

from booklibconnect.

audiamus avatar audiamus commented on June 1, 2024

Are you running this on a 4k monitor with increased font size?

Screenshots are also welcome.

Unfortunately, I still haven't a clue what's happening here.

from booklibconnect.

MidCtrlDel avatar MidCtrlDel commented on June 1, 2024

from booklibconnect.

MidCtrlDel avatar MidCtrlDel commented on June 1, 2024

And this is what is what it looks like on my end (minus the fact that I obfuscated the titles)

booklibss

from booklibconnect.

audiamus avatar audiamus commented on June 1, 2024

Right. It very much looks like an issue with the underlying .Net WinForms libraries. While they say, they would automatically adapt to high DPI scaling, there may be limits.

For the top left panel, its left anchor should be the left window border. But that appears to be ignored. The right anchor seems to be observed.

For the bottom panel with the splitter bars, their original positions appear not to be scaled upwards.

I tested on a hi-dpi laptop monitor, but only up to 150%, and it worked there.

from booklibconnect.

audiamus avatar audiamus commented on June 1, 2024

I have uploaded a new version of the test:
BookLibConnect.FormsTest.zip version 1.1

Regarding behaviour, the only change I made was to set High DPI awareness to the highest level. It was on a more basic level before.

I also added more log output for some of the elements ("controls"). They also spill out their absolute coordinates on the screen. Still in diagnostic mode.

from booklibconnect.

ninjapanzer avatar ninjapanzer commented on June 1, 2024

@audiamus That makes sense, my Surface Pro 7 defaults to 200% scaling and when I adjusted that the buttons came back.

If I set the scaling to 100% and start the app it continues to work after being set back to 200% for that run. When I reopen at 200% those buttons are lost off the left side again in the download window.

from booklibconnect.

audiamus avatar audiamus commented on June 1, 2024

Did you try the latest version of our test program here?
Same effect?
In any case I would be grateful for a log file with that new version.

from booklibconnect.

ninjapanzer avatar ninjapanzer commented on June 1, 2024

Same effect with the Test Program
BookLibConnect.FormsTest_2022-02-06_001.log

With Scaling set to 150%
BookLibConnect.FormsTest_2022-02-06_001.log

from booklibconnect.

audiamus avatar audiamus commented on June 1, 2024

Thank you. This gives me an idea what's happening to the buttons. (I haven't yet analysed the other log output.)

from booklibconnect.

audiamus avatar audiamus commented on June 1, 2024

While I could not find a pattern behind this behaviour, it appears that some anchor mechanisms for the Windows Forms controls (the visual elements) do not adapt properly to Hi DPI scaling modes at higher settings.

I have modified the hierarchy that contains the affected buttons and tested it for upscaling unto 200%. Works for me on that test system now where I could reproduce the problem before.

I also now explicitly set the splitter positions as they don't seem to adapt either.

New version:
BookLibConnect.FormsTest.zip version 1.2

from booklibconnect.

audiamus avatar audiamus commented on June 1, 2024

I have released Book Lib Connect 0.4 now, with the same modifications as in the test program. I hope it fixes the Hi DPI issues.

from booklibconnect.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.