mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-17 05:29:29 +02:00
lcl: use Screen.SystemFont for various LCL dialogs
git-svn-id: trunk@20283 -
This commit is contained in:
parent
5a3658f85b
commit
0473402cf4
@ -286,8 +286,8 @@ begin
|
|||||||
// calculate the width & height we need to display the Message
|
// calculate the width & height we need to display the Message
|
||||||
|
|
||||||
// calculate the needed size for the text
|
// calculate the needed size for the text
|
||||||
TextBox := Rect(0,0, Screen.Width div 2,Screen.Height - 100);
|
TextBox := Rect(0, 0, Screen.Width div 2, Screen.Height - 100);
|
||||||
SelectObject(Canvas.Handle, GetStockObject(DEFAULT_GUI_FONT));
|
SelectObject(Canvas.Handle, Screen.SystemFont.Reference.Handle);
|
||||||
DrawText(Canvas.Handle, PChar(MSG), Length(MSG),
|
DrawText(Canvas.Handle, PChar(MSG), Length(MSG),
|
||||||
TextBox, DT_WORDBREAK or DT_INTERNAL or DT_CALCRECT);
|
TextBox, DT_WORDBREAK or DT_INTERNAL or DT_CALCRECT);
|
||||||
|
|
||||||
@ -415,7 +415,7 @@ begin
|
|||||||
|
|
||||||
// calculate the needed size for the text
|
// calculate the needed size for the text
|
||||||
TextBox := Rect(0, 0, cTextWidth, Screen.Height - 100);
|
TextBox := Rect(0, 0, cTextWidth, Screen.Height - 100);
|
||||||
SelectObject(Canvas.Handle, GetStockObject(DEFAULT_GUI_FONT));
|
SelectObject(Canvas.Handle, Screen.SystemFont.Reference.Handle);
|
||||||
DrawText(Canvas.Handle, PChar(MSG), Length(MSG),
|
DrawText(Canvas.Handle, PChar(MSG), Length(MSG),
|
||||||
TextBox, DT_WORDBREAK or DT_INTERNAL or DT_CALCRECT);
|
TextBox, DT_WORDBREAK or DT_INTERNAL or DT_CALCRECT);
|
||||||
|
|
||||||
@ -602,7 +602,7 @@ begin
|
|||||||
MessageTxt := ' ';
|
MessageTxt := ' ';
|
||||||
TextBox := Rect(0, 0, Screen.Width div 2, Screen.Height - 100);
|
TextBox := Rect(0, 0, Screen.Width div 2, Screen.Height - 100);
|
||||||
Flags := DT_CalcRect or DT_INTERNAL or DT_WordBreak;
|
Flags := DT_CalcRect or DT_INTERNAL or DT_WordBreak;
|
||||||
SelectObject(Canvas.Handle, GetStockObject(DEFAULT_GUI_FONT));
|
SelectObject(Canvas.Handle, Screen.SystemFont.Reference.Handle);
|
||||||
DrawText(Canvas.Handle, PChar(MessageTxt), Length(MessageTxt), TextBox, Flags);
|
DrawText(Canvas.Handle, PChar(MessageTxt), Length(MessageTxt), TextBox, Flags);
|
||||||
|
|
||||||
// calculate the width we need to display the buttons
|
// calculate the width we need to display the buttons
|
||||||
|
Loading…
Reference in New Issue
Block a user