LCL: QuestionDlg: default dialog: add scrollbar width to avoid breaking lines

git-svn-id: trunk@50802 -
This commit is contained in:
mattias 2015-12-14 17:20:43 +00:00
parent 627278054a
commit 4b08219b78

View File

@ -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