mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-06-02 18:58:16 +02:00
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:
parent
0edb6832bf
commit
ab671436ed
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user