mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-21 09:59:32 +02:00
LCL: QuestionDlg: default dialog: add scrollbar width to avoid breaking lines
git-svn-id: trunk@50802 -
This commit is contained in:
parent
627278054a
commit
4b08219b78
@ -605,7 +605,8 @@ var
|
||||
CurBtnPos: Integer;
|
||||
CurBtnSize: TPoint;
|
||||
MinBtnWidth: Integer; // minimum width for a single button
|
||||
MinBtnHeight, MaxHeight: Integer; // minimum height for a single button
|
||||
MinBtnHeight, MaxHeight,
|
||||
ScrollBarWidth: Integer; // minimum height for a single button
|
||||
|
||||
function GetButtonSize(AButton: TBitBtn): TPoint;
|
||||
begin
|
||||
@ -659,6 +660,8 @@ begin
|
||||
Parent:=Self;
|
||||
end;
|
||||
end;
|
||||
ScrollBarWidth:=LCLIntf.GetSystemMetrics(SM_CXVSCROLL);
|
||||
inc(TextBox.Right,ScrollBarWidth);
|
||||
FMsgMemo.Visible:=true;
|
||||
BorderStyle := bsSizeable;
|
||||
end else if FMsgMemo<>nil then
|
||||
|
Loading…
Reference in New Issue
Block a user