xsharp.eu • XIDE high DPI support - Page 2
Page 2 of 2

Re: XIDE high DPI support

Posted: Tue Dec 16, 2025 4:08 pm
by mindfulvector
Here are the .rc files:

Manifest.CREATEPROCESS_MANIFEST_RESOURCE_ID.rc

Code: Select all

#define RC_RT_MANIFEST 24
#define CREATEPROCESS_MANIFEST_RESOURCE_ID 1
CREATEPROCESS_MANIFEST_RESOURCE_ID RC_RT_MANIFEST "HighDPI.exe.manifest"
Native_Resources.rc

Code: Select all

#include "C:\Program Files (x86)\XSharp\\Include\NativeResourceDefines.xh"
#include "C:\Bin\XIDE26\Projects\High DPI Support\Applications\HighDPI\Resources\Manifest.CREATEPROCESS_MANIFEST_RESOURCE_ID.rc"
And the manifest just in case:
HighDPI.exe.manifest

Code: Select all

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly manifestVersion="1.0" xmlns="urn:schemas-microsoft-com:asm.v1" xmlns:asmv3="urn:schemas-microsoft-com:asm.v3">
  <assemblyIdentity version="1.0.0.0" name="HighDPI.app"/>  
  <trustInfo xmlns="urn:schemas-microsoft-com:asm.v2">  
    <security>  
      <requestedPrivileges xmlns="urn:schemas-microsoft-com:asm.v3">  
        <requestedExecutionLevel level="asInvoker"/>  
      </requestedPrivileges>  
    </security>  
  </trustInfo>  
  <asmv3:application>
    <asmv3:windowsSettings>
      <dpiAware xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">True/PM</dpiAware>
      <dpiAwareness xmlns="http://schemas.microsoft.com/SMI/2016/WindowsSettings">PerMonitorV2, PerMonitor</dpiAwareness>
    </asmv3:windowsSettings>
  </asmv3:application>
</assembly>


Re: XIDE high DPI support

Posted: Wed Dec 17, 2025 10:13 am
by Chris
Hi Isaac,

Thanks a lot, that works great! Probably a sample to be put in the Pearls section in https://www.xsharp.eu/forum/18, so others can use this, too.

It's a little more complicated for XIDE though, as this affects also the visual designers, which are also affected by changing the general IDE font that Robert suggested. Will do some experimenting and hopefully get it to fully work without side effects.

Re: XIDE high DPI support

Posted: Wed Dec 17, 2025 7:57 pm
by mindfulvector
Yeah, that would be great. I will see about posting it there after fixing the download!

I expect this would be quite a task to fully implement in XIDE, absolutely, and I really appreciate you looking into it!