Problems with multiple screen DPI resolutions

Steven P Valliere <[email protected]> Thu, 17 Apr 2025 12:07:50 -0400
Newsgroups gmane.mail.the-bat.user
Organization Electronic Visions, Inc.
Message-ID <[email protected]>
This is a multi-part message in MIME format...

------------=_1744906059-807-199
Content-Type: multipart/alternative;
 boundary="----------09412819823EBD683"

------------09412819823EBD683
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit


It appears that the developers of TheBat! have tried to add High DPI awareness. This has resulted in one bug and two strange and somewhat annoying behaviors.
 
The *bug* is:
* TheBat! no longer correctly saves/restores the program window size, at least not on all of the different screens where it may be closed. My guess (after working on similar code for my own applications) is that the HighDPI awareness has not made it to all corners of the code and something in the save or restore code is using the wrong screen's DPI to scale the window, resulting (in my case, at least) in a window that is roughly 1/2 the size it should be.
 
The *annoying behaviors* are:
1. When I click the Create a new message button, the new message window typically opens about an inch to the LEFT on my screen (the first visible character on the menu bar is the 'g' in Message. For reference, I have TheBat! running on a screen to the LEFT of my primary display, which results in all of the X coordinates on the screen being negative.  This has confused several other programs and may be contributing to TheBat!'s issue, or this may be another HighDPI scaling issue.
2. When I drag the new message window from the left (low DPI) to center (high DPI) screen, to kind of "snags" about halfway and flickers for nearly a second before continuing to move onto the center screen.  This is most definitely an issue with the HighDPI awareness getting stuck in some sort of re-scaling loop for a while as the final result is that the new message window has been re-scaled for the new screen.
I've reported the save/restore issue once or twice before and been completely ignored.  I expect to be completely ignored again this time, but I really, REALLY hope that someone will pay attention and maybe even fix this — or at least give me an option to disable the new HighDPI awareness code in the program settings.
 
-- 
Steven Valliere | tb 11.4.1 | mailto:[email protected]
--
"If you didn't write it down, then it didn't happen."
   -Larry Zana
------------09412819823EBD683
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: quoted-printable

<html><head>            <style type=3D"text/css" data-title=3D"rt_noDelete">
    blockquote.rt {
    margin: 0 0 15px;
    border-left: 4px solid #81c784;
    padding: 0 0 0 12px;
    display: block;
    }
    p { margin: 0 0 0 0 }
.email-signature {font-family:"Calibri"; font-size: 9pt; font-style: italic=
; font-weight: normal; text-decoration: none; }
    </style></head><body><p class=3D"norm"></p><p class=3D"norm" style=3D"f=
ont-size:12pt;">It appears that the developers of TheBat! have tried to add=
 High DPI awareness. This has resulted in one bug and two strange and somew=
hat annoying behaviors.</p><p style=3D"font-size:12pt;">&nbsp;</p><p style=
=3D"font-size:12pt;">The *bug* is:</p><ul><li style=3D"font-size:12pt;">The=
Bat! no longer correctly saves/restores the program window size, at least n=
ot on all of the different screens where it may be closed. My guess (after =
working on similar code for my own applications) is that the HighDPI awaren=
ess has not made it to all corners of the code and something in the save or=
 restore code is using the wrong screen's DPI to scale the window, resultin=
g (in my case, at least) in a window that is roughly 1/2 the size it should=
 be.</li></ul><p style=3D"font-size:12pt;">&nbsp;</p><p style=3D"font-size:=
12pt;">The *annoying behaviors* are:</p><ol><li style=3D"font-size:12pt;">W=
hen I click the&nbsp;<i>Create a new message</i>&nbsp;button, the new messa=
ge window typically opens about an inch to the LEFT on my screen (the first=
 visible character on the menu bar is the 'g' in&nbsp;<i>Message</i>. For r=
eference, I have TheBat! running on a screen to the LEFT of my primary disp=
lay, which results in all of the X coordinates on the screen being negative=
. &nbsp;This has confused several other programs and may be contributing to=
 TheBat!'s issue, or this may be another HighDPI scaling issue.</li><li sty=
le=3D"font-size:12pt;">When I drag the new message window from the left (lo=
w DPI) to center (high DPI) screen, to kind of "snags" about halfway and fl=
ickers for nearly a second before continuing to move onto the center screen=
. &nbsp;This is most definitely an issue with the HighDPI awareness getting=
 stuck in some sort of re-scaling loop for a while as the final result is t=
hat the new message window has been re-scaled for the new screen.</li></ol>=
<p style=3D"font-size:12pt;">I've reported the save/restore issue once or t=
wice before and been completely ignored. &nbsp;I expect to be completely ig=
nored again this time, but I really, REALLY hope that someone will pay atte=
ntion and maybe even fix this =E2=80=94 or at least give me an option to di=
sable the new HighDPI awareness code in the program settings.</p><p class=
=3D"norm" style=3D"font-size:12pt;">&nbsp;<br/></p><div class=3D"email-sign=
ature" style=3D"font-size:12pt;">--&nbsp;<br/>
Steven Valliere | tb 11.4.1 |&nbsp;<a class=3D"HR" href=3D"mailto:thebat@e-=
visions.com">mailto:[email protected]</a><br/>
--<br/>
"If you didn't write it down, then it didn't happen."<br/>
&nbsp; &nbsp;-Larry Zana</div></body></html>=

------------09412819823EBD683--



------------=_1744906059-807-199
Content-Type: text/plain; charset="UTF-8"
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
MIME-Version: 1.0

________________________________________________
Current version is 9.1.18 | 'Using TBUDL' information:
http://www.silverstones.com/thebat/TBUDLInfo.html


------------=_1744906059-807-199--