mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-20 12:19:31 +02:00
LCL: clean up, fixed EnsureVisible to not force BringToFront
git-svn-id: trunk@15400 -
This commit is contained in:
parent
cab55add37
commit
2ebd2ec660
@ -703,10 +703,10 @@ begin
|
||||
if newTop < 0 then
|
||||
newTop := 0;
|
||||
SetBounds(newLeft, newTop, Width, Height);
|
||||
if AMoveToTop then
|
||||
if AMoveToTop then
|
||||
ShowOnTop
|
||||
else
|
||||
Show;
|
||||
Visible:=true;
|
||||
end;
|
||||
|
||||
{------------------------------------------------------------------------------
|
||||
|
@ -156,7 +156,6 @@ var
|
||||
curBtn : Longint; // variable to loop through TMsgDlgButtons
|
||||
ButtonIndex : integer;
|
||||
CurButton: TBitBtn;
|
||||
CurBtnSize: TPoint;
|
||||
begin
|
||||
Result := 0;
|
||||
|
||||
@ -455,10 +454,7 @@ Const
|
||||
cVerticalSpacing = 5;
|
||||
cButtonWidth = 200 - cTextWidth - 3 * cHorizontalSpacing;
|
||||
var
|
||||
curBtn : Longint; // variable to loop through TMsgDlgButtons
|
||||
reqBtnWidth : integer; // width neccessary to display buttons
|
||||
i : integer;
|
||||
ButtonIndex : integer;
|
||||
CurButton: TBitBtn;
|
||||
|
||||
ButtonLeft, ButtonTop: Integer;
|
||||
|
Loading…
Reference in New Issue
Block a user