XIDE high DPI support

This forum is meant for questions and discussions about the X# language and tools
mindfulvector
Posts: 29
Joined: Tue Jun 24, 2025 1:57 pm
Location: United States

Re: XIDE high DPI support

Post 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>

User avatar
Chris
Posts: 5585
Joined: Thu Oct 08, 2015 7:48 am
Location: Greece

Re: XIDE high DPI support

Post 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.
Chris Pyrgas

XSharp Development Team
chris(at)xsharp.eu
mindfulvector
Posts: 29
Joined: Tue Jun 24, 2025 1:57 pm
Location: United States

Re: XIDE high DPI support

Post 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!
Post Reply