<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Hi,</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">so - your patch indeed fixes it for
Windows (where the native common controls dialog is used for Win
10). But - there's more logic behind it I think.</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">For Linux (and Probably other
platforms, too), independent of the widget set, in <tt>LCLTaskDialog.pas</tt>
there's</div>
<div class="moz-cite-prefix"><tt><br>
</tt></div>
<div class="moz-cite-prefix"><tt> TCommonButton = (</tt><tt><br>
</tt><tt> cbOK, cbYes, cbNo, cbCancel, cbRetry, <font
color="#ff6600">cbClose</font>); </tt><br>
</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">and</div>
<div class="moz-cite-prefix"><tt><br>
</tt></div>
<div class="moz-cite-prefix"><tt>const</tt><tt><br>
</tt><tt> TD_BTNMOD: array[TCommonButton] of Integer = (</tt><tt><br>
</tt><tt> mrOk, mrYes, mrNo, mrCancel, mrRetry, <font
color="#ff6600">mrAbort</font>); </tt><br>
</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix"><tt>TD_BTNMOD</tt> is used exactly once
again, where it serves to pass the ModalResult to the Button. So
the "Close" button really gets assigned with "mrAbort" in Linux,
where in Windows, the difference in idClose and mrClose is the
culprit?</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">Also, LCLTaskDialog seems to execute
the native Windows Dialog independently of the selected Widgetset;
though I don't think Qt or GTK is widely used on Windows anyway?</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">I won't dig further on the latter, but
should I file a bug about the Close/Abort thing?</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">All the best,</div>
<div class="moz-cite-prefix">Alex<br>
</div>
</body>
</html>