madExcept and 4K monitors

delphi package - automated exception handling
Post Reply
piotrx151
Posts: 4
Joined: Tue May 02, 2023 11:38 am

madExcept and 4K monitors

Post by piotrx151 »

madExcept is a great tool for Delphi mad exceptions, btw do you plan add the 4K monitors ?

Currently madExcept graphics, fonts, forms etc. are a little bit blurred on the 4K Monitors.
madshi
Site Admin
Posts: 10766
Joined: Sun Mar 21, 2004 5:25 pm

Re: madExcept and 4K monitors

Post by madshi »

This probably depends on multiple things, including the DPI setting of your monitor, your process DPI scaling settings etc.

In madExcept.pas, there's this line of code:

Code: Select all

    stdac(THandle(-1));
Can you try if replacing the -1 with -4 solves the problem? You'll have to copy madExcept.pas and mad.inc to your project source folder in order to be able to compile madExcept.pas.
piotrx151
Posts: 4
Joined: Tue May 02, 2023 11:38 am

Re: madExcept and 4K monitors

Post by piotrx151 »

Hi,

Changing from -1 to -4 is better, but the "An error occurred" window is smaller.
luciano_f
Posts: 47
Joined: Thu Feb 01, 2018 5:11 pm

Re: madExcept and 4K monitors

Post by luciano_f »

madshi wrote: Tue May 02, 2023 4:13 pm This probably depends on multiple things, including the DPI setting of your monitor, your process DPI scaling settings etc.

In madExcept.pas, there's this line of code:

Code: Select all

    stdac(THandle(-1));
Can you try if replacing the -1 with -4 solves the problem? You'll have to copy madExcept.pas and mad.inc to your project source folder in order to be able to compile madExcept.pas.
You could put this access to Scala in "IMEModuleSettings" or Global in "madExcept", it would be much better than having to compile it with each new version.
madshi
Site Admin
Posts: 10766
Joined: Sun Mar 21, 2004 5:25 pm

Re: madExcept and 4K monitors

Post by madshi »

True, I've changed this in madExcept now.
luciano_f
Posts: 47
Joined: Thu Feb 01, 2018 5:11 pm

Re: madExcept and 4K monitors

Post by luciano_f »

madshi wrote: Mon Oct 09, 2023 7:29 pm True, I've changed this in madExcept now.

Increase the font on the Configuration screen?

There is an option in the log that increases the font on the Log screen
I could use this same setting to increase the font size of the settings screen as it is a very small screen and for those who wear glasses like me it would be much better.

HKEY_CURRENT_USER\Software\madshi\madExceptViewer\AddFontSize DWORD
Attachments
Tela Config.png
Tela Config.png (151.46 KiB) Viewed 9000 times
luciano_f
Posts: 47
Joined: Thu Feb 01, 2018 5:11 pm

Re: madExcept and 4K monitors

Post by luciano_f »

@madshi

Hello, could you implement the font increase for the settings screen as well ?
Post Reply