mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-18 02:59:17 +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;
|
CurBtnPos: Integer;
|
||||||
CurBtnSize: TPoint;
|
CurBtnSize: TPoint;
|
||||||
MinBtnWidth: Integer; // minimum width for a single button
|
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;
|
function GetButtonSize(AButton: TBitBtn): TPoint;
|
||||||
begin
|
begin
|
||||||
@ -659,6 +660,8 @@ begin
|
|||||||
Parent:=Self;
|
Parent:=Self;
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
ScrollBarWidth:=LCLIntf.GetSystemMetrics(SM_CXVSCROLL);
|
||||||
|
inc(TextBox.Right,ScrollBarWidth);
|
||||||
FMsgMemo.Visible:=true;
|
FMsgMemo.Visible:=true;
|
||||||
BorderStyle := bsSizeable;
|
BorderStyle := bsSizeable;
|
||||||
end else if FMsgMemo<>nil then
|
end else if FMsgMemo<>nil then
|
||||||
|
Loading…
Reference in New Issue
Block a user