Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for High DPI #14

Closed
nhinzevt opened this issue Sep 1, 2017 · 6 comments
Closed

Support for High DPI #14

nhinzevt opened this issue Sep 1, 2017 · 6 comments

Comments

@nhinzevt
Copy link

nhinzevt commented Sep 1, 2017

Thanks for this awesome control. I'm having trouble upgrading it to work for High DPI screens. I updated the ADV Sample code using the link below. Everything looks sharp, but the filter is having some formatting problems.

capture

http://crsouza.com/2015/04/13/how-to-fix-blurry-windows-forms-windows-in-high-dpi-settings/

@davidegironi
Copy link
Owner

Hello and thank you. I think you have to check the private void ResizeBox method in MenuStrip.cs. Please do it with a parametric option, so one can enable or disable the High DPI capabilities. If you do that please let us know.

@nhinzevt
Copy link
Author

nhinzevt commented Sep 6, 2017

I have started work on this in my fork. From my testing, a parametric option is not needed so far, because on normal DPI the scaling is 1.0.

I'm having trouble removing or hiding the black triangular arrows. I don't understand where they are coming from:

capture

Work In Progress branch:

https://github.com/nhinzevt/advanceddatagridview/tree/handle-high-dpi

@davidegironi
Copy link
Owner

I've download your branch and compile, but I don't have that triangles coming out. I must say that do not have an High DPI monitor so it may depends on that.

@davidegironi
Copy link
Owner

davidegironi commented Sep 12, 2017

@nhinzevt I was solving the issue here #15 and I maybe found a way to make it woks with High DPI.
Thank you for your feedback.
Try this version out: https://expirebox.com/download/ad438cc44617404073d785f1f0888f25.html
Expires in 2 days.
Let me know. You have to try because i do not have any High DPI to test it against, thank you.

@nhinzevt
Copy link
Author

I used the following file in the download:

\AdvancedDataGridView\AdvancedDataGridView\bin\Release\AdvancedDataGridView.dll

The result appears to be the same:

adgv

@davidegironi
Copy link
Owner

Thank you for your test. It is still something related to ResizeBox method in MenuStrip.cs but I do not know how to fix it. If you find a solution please post it here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants