mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-11 13:37:45 +02:00
fix buttonrect to contain bounds
git-svn-id: trunk@5474 -
This commit is contained in:
parent
5408f03b2a
commit
e43e72f41b
@ -651,8 +651,10 @@ begin
|
||||
ButtonHeight:=ButtonWidth;
|
||||
for mm:=Low(TMakeMode) to High(TMakeMode) do begin
|
||||
// draw button
|
||||
ButtonRect:=Rect(x,ARect.Top+((ARect.Bottom-ARect.Top-ButtonWidth) div 2),
|
||||
x+ButtonWidth,ButtonHeight);
|
||||
ButtonRect.Left:=x;
|
||||
ButtonRect.Top:=ARect.Top+((ARect.Bottom-ARect.Top-ButtonWidth) div 2);
|
||||
ButtonRect.Right:=x+ButtonWidth;
|
||||
ButtonRect.Bottom:=ButtonRect.Top+ButtonHeight;
|
||||
ButtonState:=DFCS_BUTTONPUSH;
|
||||
if CurItem.MakeMode=mm then
|
||||
inc(ButtonState,DFCS_PUSHED);
|
||||
|
Loading…
Reference in New Issue
Block a user