Tuesday, 31 May 2016

HANA Studio on High resolution displays

If you try to work with SAP HANA Studio on HiDPI (High resolution display), like Apple retina or Microsoft Surface, you will see that there is a problem with the size of the icons:

In Surface 4 at 2736x1824, icons are tiny, unusable, as you can see in the screenshot (compare it with the size of the fonts):

HANA Studio on High resolution displays
As HANA Studio is based in Eclipse, I tried some recommendations that I found in https://bugs.eclipse.org/bugs/show_bug.cgi?id=421383#c60 with correct results:


HANA Studio on High resolution displays

Windows instructions

Create a new registry key with REGEDIT

Navigate to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\SideBySide\
And create a new entry (DWORD VALUE)

Name: PreferExternalManifest
Value: 1

Create a Manifest file

Open hdbstudio.exe location (by default C:\Program Files\sap\hdbstudio)
Create a new file: hdbstudio.exe.manifest  (or use the attached file, and remove .xml extension)
with this content:


<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0" xmlns:asmv3="urn:schemas-microsoft-com:asm.v3">
    <description>eclipse</description>
    <trustInfo xmlns="urn:schemas-microsoft-com:asm.v2">
        <security>
            <requestedPrivileges>
                <requestedExecutionLevel xmlns:ms_asmv3="urn:schemas-microsoft-com:asm.v3"
                               level="asInvoker"
                               ms_asmv3:uiAccess="false">
                </requestedExecutionLevel>
            </requestedPrivileges>
        </security>
    </trustInfo>
    <asmv3:application>
        <asmv3:windowsSettings xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">
            <ms_windowsSettings:dpiAware xmlns:ms_windowsSettings="http://schemas.microsoft.com/SMI/2005/WindowsSettings">false</ms_windowsSettings:dpiAware>
        </asmv3:windowsSettings>
    </asmv3:application>
</assembly>

Source: scn.sap.com