mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-28 20:00:20 +02:00
LCL: Fix ShowMessage cutting the last word after char "&", issue #21913, patch from samuel herzog
git-svn-id: trunk@37256 -
This commit is contained in:
parent
d3f84cef6f
commit
3ed97298dc
@ -255,7 +255,7 @@ begin
|
||||
TextBox := Rect(0, 0, Screen.Width div 2, Screen.Height - 100);
|
||||
SelectObject(Canvas.Handle, Screen.SystemFont.Reference.Handle);
|
||||
DrawText(Canvas.Handle, PChar(MSG), Length(MSG),
|
||||
TextBox, DT_WORDBREAK or DT_CALCRECT);
|
||||
TextBox, DT_WORDBREAK or DT_CALCRECT or DT_NOPREFIX);
|
||||
|
||||
// calculate the width we need to display the buttons
|
||||
MinBtnWidth:=Max(25,MinimumDialogButtonWidth);
|
||||
|
Loading…
Reference in New Issue
Block a user