PeterStrick / ViVeTool-GUI

Windows Feature Control GUI based on ViVe / ViVeTool
GNU General Public License v3.0
1.61k stars 143 forks source link

Add support for big screens with hidpi #75

Closed uom42 closed 10 months ago

uom42 commented 10 months ago

It's so weird in late 2023 to have a fixed size window containing variable size data (tables, lists, etc.) it looks like something out of the late 90's! Please let's add support for variable size main window and support for hidpi displays so that system UI scaling happens correctly!

Describe the solution you'd like Please add:

<?xml version="1.0" encoding="utf-8"?>
<configuration>
    ...
    <System.Windows.Forms.ApplicationConfigurationSection>
        <add key="DpiAwareness" value="PerMonitorV2" />
    </System.Windows.Forms.ApplicationConfigurationSection>
    ... 
</configuration>

into App.config

And please change:

Private Sub InitializeComponent()
        ...
        Me.FormBorderStyle = System.Windows.Forms.FormBorderStyle.Sizable
        Me.MaximizeBox = True
        Me.MinimumSize = New Drawing.Size(600, 400)
        ...
End Sub

in GUI.Designer.vb

uom42 commented 10 months ago

And maybe we can add:

Private Sub InitializeComponent()
        ...
        Me.StartPosition = FormStartPosition.CenterParent
        ...
End Sub

into vivetool-gui\AboutAndSettings.Designer.vb

PeterStrick commented 10 months ago

I don't own a HiDPI Monitor personally so have never tested my Applications against them, could you try downloading the Build Artifact and see if it supports HiDPI Monitors as intended now?

ViVeTool GUI and the Feature Scanner have been changed accordingly, and also made Sizeable

uom42 commented 10 months ago

My friend, everything works perfectly! You are the best!