<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Hi Scott,<br>
<br>
Thanks for reproducing the problem.<br>
<br>
I tried digging into example-Qt4Qt5 but I know nothing about Qt
and frankly was turned off not being able to find a pre-built
version of qmake (even after installing the Qt SDK). Are you able
to publish a pre-built executable of example-Qt4Qt5 for me to try
out?<br>
<br>
Thanks,<br>
Gili<br>
<br>
On 2018-05-23 6:40 PM, Scott Bloom wrote:<br>
</div>
<blockquote type="cite"
cite="mid:BLUPR10MB08019CA025166F16D3318E8BA96B0@BLUPR10MB0801.namprd10.prod.outlook.com">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered
medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Consolas;
panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
color:black;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
pre
{mso-style-priority:99;
mso-style-link:"HTML Preformatted Char";
margin:0in;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Courier New";
color:black;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
{mso-style-priority:34;
margin-top:0in;
margin-right:0in;
margin-bottom:0in;
margin-left:.5in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
color:black;}
p.msonormal0, li.msonormal0, div.msonormal0
{mso-style-name:msonormal;
mso-margin-top-alt:auto;
margin-right:0in;
mso-margin-bottom-alt:auto;
margin-left:0in;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
color:black;}
span.HTMLPreformattedChar
{mso-style-name:"HTML Preformatted Char";
mso-style-priority:99;
mso-style-link:"HTML Preformatted";
font-family:Consolas;
color:black;}
span.EmailStyle20
{mso-style-type:personal;
font-family:"Calibri",sans-serif;
color:windowtext;}
span.EmailStyle21
{mso-style-type:personal;
font-family:"Calibri",sans-serif;
color:windowtext;}
span.EmailStyle22
{mso-style-type:personal;
font-family:"Calibri",sans-serif;
color:windowtext;}
span.EmailStyle24
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
/* List Definitions */
@list l0
{mso-list-id:1039744982;
mso-list-template-ids:1203822914;}
@list l0:level1
{mso-level-tab-stop:.5in;
mso-level-number-position:left;
text-indent:-.25in;}
@list l0:level2
{mso-level-tab-stop:1.0in;
mso-level-number-position:left;
text-indent:-.25in;}
@list l0:level3
{mso-level-tab-stop:1.5in;
mso-level-number-position:left;
text-indent:-.25in;}
@list l0:level4
{mso-level-tab-stop:2.0in;
mso-level-number-position:left;
text-indent:-.25in;}
@list l0:level5
{mso-level-tab-stop:2.5in;
mso-level-number-position:left;
text-indent:-.25in;}
@list l0:level6
{mso-level-tab-stop:3.0in;
mso-level-number-position:left;
text-indent:-.25in;}
@list l0:level7
{mso-level-tab-stop:3.5in;
mso-level-number-position:left;
text-indent:-.25in;}
@list l0:level8
{mso-level-tab-stop:4.0in;
mso-level-number-position:left;
text-indent:-.25in;}
@list l0:level9
{mso-level-tab-stop:4.5in;
mso-level-number-position:left;
text-indent:-.25in;}
@list l1
{mso-list-id:1135222812;
mso-list-template-ids:-116504974;}
@list l2
{mso-list-id:2005430552;
mso-list-type:hybrid;
mso-list-template-ids:1278924452 67698705 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;}
@list l2:level1
{mso-level-text:"%1\)";
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-.25in;}
@list l2:level2
{mso-level-number-format:alpha-lower;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-.25in;}
@list l2:level3
{mso-level-number-format:roman-lower;
mso-level-tab-stop:none;
mso-level-number-position:right;
text-indent:-9.0pt;}
@list l2:level4
{mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-.25in;}
@list l2:level5
{mso-level-number-format:alpha-lower;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-.25in;}
@list l2:level6
{mso-level-number-format:roman-lower;
mso-level-tab-stop:none;
mso-level-number-position:right;
text-indent:-9.0pt;}
@list l2:level7
{mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-.25in;}
@list l2:level8
{mso-level-number-format:alpha-lower;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-.25in;}
@list l2:level9
{mso-level-number-format:roman-lower;
mso-level-tab-stop:none;
mso-level-number-position:right;
text-indent:-9.0pt;}
ol
{margin-bottom:0in;}
ul
{margin-bottom:0in;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="WordSection1">
<p class="MsoNormal"><span style="color:windowtext">To duplicate
under windows 10:<o:p></o:p></span></p>
<ol style="margin-top:0in" start="1" type="1">
<li class="MsoListParagraph"
style="color:windowtext;margin-left:0in;mso-list:l2 level1
lfo4">
Setup two monitors, resolution doesn’t matter, however the
Scale & layout option (windows 10), “Change the size of
text, apps and other items” to 125% on one screen<o:p></o:p></li>
<li class="MsoListParagraph"
style="color:windowtext;margin-left:0in;mso-list:l2 level1
lfo4">
Run the example-Qt4Qt5 app as shipped with the QScintilla
core<o:p></o:p></li>
<li class="MsoListParagraph"
style="color:windowtext;margin-left:0in;mso-list:l2 level1
lfo4">
In the screen with magnification, just type, you will see
the visible cursor is NOT where it should be.<o:p></o:p></li>
</ol>
<p class="MsoNormal"><span style="color:windowtext"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext">I have
confirmed it doesn’t happen with SciTE<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext">It doesn’t
appear it has anything to do with moving, just having the
window open on the scaled screen.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext">Gili, can
you confirm that ?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext">Scott<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1
1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="color:windowtext">From:</span></b><span
style="color:windowtext"> cowwoc
<a class="moz-txt-link-rfc2396E" href="mailto:cowwoc@bbs.darktech.org"><cowwoc@bbs.darktech.org></a>
<br>
<b>Sent:</b> Wednesday, May 23, 2018 15:19<br>
<b>To:</b> Scott Bloom <a class="moz-txt-link-rfc2396E" href="mailto:scott@towel42.com"><scott@towel42.com></a>; Phil
Thompson <a class="moz-txt-link-rfc2396E" href="mailto:phil@riverbankcomputing.com"><phil@riverbankcomputing.com></a><br>
<b>Cc:</b> <a class="moz-txt-link-abbreviated" href="mailto:qscintilla@riverbankcomputing.com">qscintilla@riverbankcomputing.com</a><br>
<b>Subject:</b> Re: [QScintilla] Bug report: Caret
position is incorrect if window dragged across monitors<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">Thanks Scott. As far as I can tell, this
bug isn't 4k specific.<br>
<br>
If I change my 1080p monitor to have the same scaling factor
as the 4k monitor and drag TortoiseHg across the problem
does not occur. The bug seems tied to different scaling
factors, regardless of the monitor resolution.<br>
<br>
Gili<br>
<br>
On 2018-05-23 6:17 PM, Scott Bloom wrote:<o:p></o:p></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal"><span style="color:windowtext">I don’t
have a 4k monitor, but I will try to play with it on a
multimonitor PC and see if I can set the scaling factor on
one screen and not the other (all three screens are the
same resolution here)<br>
<br>
There is not (that I know of) a QScintialla public test
app</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:windowtext"><br>
Scott</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:windowtext"> </span><o:p></o:p></p>
<div>
<div style="border:none;border-top:solid #E1E1E1
1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="color:windowtext">From:</span></b><span
style="color:windowtext"> cowwoc
<a href="mailto:cowwoc@bbs.darktech.org"
moz-do-not-send="true"><cowwoc@bbs.darktech.org></a>
<br>
<b>Sent:</b> Wednesday, May 23, 2018 15:15<br>
<b>To:</b> Scott Bloom <a
href="mailto:scott@towel42.com"
moz-do-not-send="true"><scott@towel42.com></a>;
Phil Thompson
<a href="mailto:phil@riverbankcomputing.com"
moz-do-not-send="true"><phil@riverbankcomputing.com></a><br>
<b>Cc:</b> <a
href="mailto:qscintilla@riverbankcomputing.com"
moz-do-not-send="true">qscintilla@riverbankcomputing.com</a><br>
<b>Subject:</b> Re: [QScintilla] Bug report: Caret
position is incorrect if window dragged across
monitors</span><o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"> <o:p></o:p></p>
<div>
<p class="MsoNormal">It just tested SciTE and it works fine.<br>
<br>
Do you have an equivalent program that uses QScintilla?<br>
<br>
PS: Using TortoiseHg, if I keep the application on the
same monitor and change its scaling factor the bug does
not occur. The bug only seems to occur when the
application is dragged from one monitor to another. My
guess is that when the application is sitting on one
monitor and the scaling factor is changed, it receives and
responds to an event. But when the application is dragged
across monitors it does not recieve a scaling-specific
event and as such it doesn't think to update the DPI
accordingly. I would be surprised if this logic was
TortoiseHg-specific (it seems like something that should
be handled by the lower layers) but who knows...<br>
<br>
Thanks,<br>
Gili<br>
<br>
On 2018-05-23 6:08 PM, Scott Bloom wrote:<o:p></o:p></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal"><span style="color:windowtext">Understood.</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:windowtext"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:windowtext">You may
want to try SciTE.</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:windowtext"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:windowtext">That is
a base editor, tied to the core Scintilla widget, not
used QScintilla (which is a Qt wrapper for the core)<br>
<br>
In reality, the TortoiseHg devs, need to work on this,
to see if its their bug first..
</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:windowtext"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:windowtext">This
could be due to the 4k to HD resolution swap…</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:windowtext"><br>
Scott</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:windowtext"> </span><o:p></o:p></p>
<div>
<div style="border:none;border-top:solid #E1E1E1
1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="color:windowtext">From:</span></b><span
style="color:windowtext"> cowwoc
<a href="mailto:cowwoc@bbs.darktech.org"
moz-do-not-send="true"><cowwoc@bbs.darktech.org></a>
<br>
<b>Sent:</b> Wednesday, May 23, 2018 15:06<br>
<b>To:</b> Scott Bloom <a
href="mailto:scott@towel42.com"
moz-do-not-send="true"><scott@towel42.com></a>;
Phil Thompson
<a href="mailto:phil@riverbankcomputing.com"
moz-do-not-send="true"><phil@riverbankcomputing.com></a><br>
<b>Cc:</b> <a
href="mailto:qscintilla@riverbankcomputing.com"
moz-do-not-send="true">qscintilla@riverbankcomputing.com</a><br>
<b>Subject:</b> Re: [QScintilla] Bug report: Caret
position is incorrect if window dragged across
monitors</span><o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"> <o:p></o:p></p>
<div>
<p class="MsoNormal">Hi Scott,<br>
<br>
I'm not affiliated with TortoiseHg. I'm just an
end-user. As such, I have no idea how to create a
minimal testcase outside of TortoiseHg. When I filed a
bug report at
<a
href="https://bitbucket.org/tortoisehg/thg/issues/5086/caret-position-is-incorrect-if-window"
moz-do-not-send="true">
https://bitbucket.org/tortoisehg/thg/issues/5086/caret-position-is-incorrect-if-window</a>
I attached a video demonstrating the problem. Hopefully
that'll help.<br>
<br>
If you guys have a stand-alone application I could run,
I can try reproducing the problem with it as well.<br>
<br>
Thanks,<br>
Gili<br>
<br>
On 2018-05-23 4:45 PM, Scott Bloom wrote:<o:p></o:p></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal"><span style="color:windowtext">I have
a PC with multiple monitors..
</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:windowtext"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:windowtext">However,
looking at the issue, there is no minimal testcase.
There is also nothing saying it’s a bug in Scintilla,
QScintilla or tortoisehg. It could be any of the
three.</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:windowtext"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:windowtext">Why is
the assumption being made that its QScintilla?<br>
<br>
Scott</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:windowtext"> </span><o:p></o:p></p>
<div>
<div style="border:none;border-top:solid #E1E1E1
1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="color:windowtext">From:</span></b><span
style="color:windowtext"> QScintilla
<a
href="mailto:qscintilla-bounces@riverbankcomputing.com"
moz-do-not-send="true"><qscintilla-bounces@riverbankcomputing.com></a>
<b>On Behalf Of </b>cowwoc<br>
<b>Sent:</b> Wednesday, May 23, 2018 13:42<br>
<b>To:</b> Phil Thompson <a
href="mailto:phil@riverbankcomputing.com"
moz-do-not-send="true"><phil@riverbankcomputing.com></a><br>
<b>Cc:</b> <a
href="mailto:qscintilla@riverbankcomputing.com"
moz-do-not-send="true">qscintilla@riverbankcomputing.com</a><br>
<b>Subject:</b> Re: [QScintilla] Bug report: Caret
position is incorrect if window dragged across
monitors</span><o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"> <o:p></o:p></p>
<div>
<p class="MsoNormal">On 2018-05-23 11:09 AM, Phil
Thompson wrote:<o:p></o:p></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<pre>On 23 May 2018, at 3:01 pm, cowwoc <a href="mailto:cowwoc@bbs.darktech.org" moz-do-not-send="true"><cowwoc@bbs.darktech.org></a> wrote:<o:p></o:p></pre>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<pre> <o:p></o:p></pre>
<pre>On 2018-05-23 8:46 AM, Phil Thompson wrote:<o:p></o:p></pre>
<blockquote
style="margin-top:5.0pt;margin-bottom:5.0pt">
<pre>On 22 May 2018, at 3:48 am, cowwoc <a href="mailto:cowwoc@bbs.darktech.org" moz-do-not-send="true"><cowwoc@bbs.darktech.org></a> wrote:<o:p></o:p></pre>
<blockquote
style="margin-top:5.0pt;margin-bottom:5.0pt">
<pre>Sorry, I forgot to include the bug report: <a href="https://bitbucket.org/tortoisehg/thg/issues/5086/caret-position-is-incorrect-if-window" moz-do-not-send="true">https://bitbucket.org/tortoisehg/thg/issues/5086/caret-position-is-incorrect-if-window</a><o:p></o:p></pre>
<pre> <o:p></o:p></pre>
<pre>Thank you,<o:p></o:p></pre>
<pre>Gili<o:p></o:p></pre>
<pre> <o:p></o:p></pre>
<pre>On 2018-05-21 9:13 PM, cowwoc wrote:<o:p></o:p></pre>
<blockquote
style="margin-top:5.0pt;margin-bottom:5.0pt">
<pre>Hi,<o:p></o:p></pre>
<pre> <o:p></o:p></pre>
<pre>Can someone please take a look at this bug report which seems to affect your project?<o:p></o:p></pre>
</blockquote>
</blockquote>
<pre>Sorry, I don't have the equipment needed to reproduce the problem.<o:p></o:p></pre>
<pre> <o:p></o:p></pre>
<pre>Phil<o:p></o:p></pre>
</blockquote>
<pre> <o:p></o:p></pre>
<pre>Hi Phil,<o:p></o:p></pre>
<pre> <o:p></o:p></pre>
<pre>Which equipment are you missing? A video card with 2 ports? 2 monitors? Or a copy of Windows?<o:p></o:p></pre>
</blockquote>
<pre> <o:p></o:p></pre>
<pre>...and a PC.<o:p></o:p></pre>
<pre> <o:p></o:p></pre>
<pre>Phil<o:p></o:p></pre>
</blockquote>
<p>Fortunately for you, that's not a problem :) Assuming
you have a Mac laptop:<o:p></o:p></p>
<ol start="1" type="1">
<li class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;mso-list:l0
level1 lfo3">
Plug in a second monitor (any will do) so your laptop
sees multiple monitors.<o:p></o:p></li>
<li class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;mso-list:l0
level1 lfo3">
Fire up a virtual machine of your choosing. I used
VMWare Workstation, which is equivalent to VMWare
Fusion on Mac. I believe VirtualBox (which is free)
will work just as well.<o:p></o:p></li>
<li class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;mso-list:l0
level1 lfo3">
Download and install the Windows 10 ISO which you can
download for free from <a
href="https://www.microsoft.com/en-ca/software-download/windows10"
moz-do-not-send="true">
https://www.microsoft.com/en-ca/software-download/windows10</a><o:p></o:p></li>
<li class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;mso-list:l0
level1 lfo3">
You can run Windows 10 without a license for a short
period of time (30 days I believe) so this isn't a
problem.<o:p></o:p></li>
<li class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;mso-list:l0
level1 lfo3">
Configure the VM with 2 virtual monitors and you
should be able to reproduce the problem.<o:p></o:p></li>
<li class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;mso-list:l0
level1 lfo3">
I just tried it in VMWare Workstation and it worked
for me.<o:p></o:p></li>
</ol>
<p>I haven't been able to get this working (yet) using a
single physical monitor. See
<a
href="https://superuser.com/questions/1325393/how-to-use-multiple-virtual-monitors-if-host-has-a-single-monitor"
moz-do-not-send="true">
https://superuser.com/questions/1325393/how-to-use-multiple-virtual-monitors-if-host-has-a-single-monitor</a><o:p></o:p></p>
<p>But it's possible that VirtualBox is better in this
regard than VMWare Workstation.<o:p></o:p></p>
<p>Gili<o:p></o:p></p>
</blockquote>
<p> <o:p></o:p></p>
</blockquote>
<p> <o:p></o:p></p>
</blockquote>
<p><o:p> </o:p></p>
</div>
</blockquote>
<p><br>
</p>
</body>
</html>