LCL: lcltaskdialog must use DrawText() from LCLIntf under windows, so other WS wont' crash under windows. issue #35575

git-svn-id: trunk@61216 -
This commit is contained in:
zeljko 2019-05-13 09:41:44 +00:00
parent 0edb6832bf
commit ab671436ed

View File

@ -735,7 +735,7 @@ begin
W := aWidth-X-8;
R.Right := W;
R.Bottom := result.Height;
DrawText(result.Canvas.Handle,PChar(Text),Length(Text),R,DT_CALCRECT or DT_WORDBREAK);//lazarus does not return box height on OSX (Lazarus bug), the height is stored in the rect in all cases, so we don't need to use the result
LCLIntf.DrawText(result.Canvas.Handle,PChar(Text),Length(Text),R,DT_CALCRECT or DT_WORDBREAK);//lazarus does not return box height on OSX (Lazarus bug), the height is stored in the rect in all cases, so we don't need to use the result
result.SetBounds(X,Y,W,R.Bottom);
result.Caption := Text;