madExcept Window to small on High-DPI
madExcept Window to small on High-DPI
I use madExcept 5.1.4. My application uses Delphi 12 with DPI Awareness Per Monitor V2.
The display of the program is correct.
But in case of an exception the upcoming madExcept window is close to unreadable.
How to get a bigger window size for madExcept?
Thanks for any tip.
The display of the program is correct.
But in case of an exception the upcoming madExcept window is close to unreadable.
How to get a bigger window size for madExcept?
Thanks for any tip.
Re: madExcept Window to small on High-DPI
Same here. the scale factor isn't taken into consideration.
Re: madExcept Window to small on High-DPI
Can you try this:
1) Copy madExcept.pas and mad.inc into your project folder.
2) In madExcept.pas search for "stdac(THandle(-4))" and comment that line out, while leaving the "stdac(THandle(-1))" line in place like this:
Does that workaround the issue?
1) Copy madExcept.pas and mad.inc into your project folder.
2) In madExcept.pas search for "stdac(THandle(-4))" and comment that line out, while leaving the "stdac(THandle(-1))" line in place like this:
Code: Select all
if @stdac <> nil then begin
stdac(THandle(-1));
//stdac(THandle(-4));
end;
Re: madExcept Window to small on High-DPI
Indeed, it does.
Thank you very much for your quick solution.
Thank you very much for your quick solution.
Re: madExcept Window to small on High-DPI
Glad to hear that, will change it in the next build.
Re: madExcept Window to small on High-DPI
Yes, it also helps here.
Thanks a lot
Thanks a lot
Re: madExcept Window to small on High-DPI
Here's a Microsoft sample project with full code in case anyone wants to test all DPI Awareness parameters, this way you can see how the system treats each one of them visually. You can then change stdac(THandle(N)) to whatever value you prefer, if needed.
https://github.com/microsoft/Windows-cl ... ontext.cpp
--Iconic
https://github.com/microsoft/Windows-cl ... ontext.cpp
--Iconic
Re: madExcept Window to small on High-DPI
Thanks for this additional information.