You've already forked lazarus-ccr
TvPlanIt: Minor improvements.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8917 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@ -156,6 +156,7 @@ var
|
||||
h: Integer;
|
||||
R: TRect;
|
||||
dx, dy: Integer;
|
||||
buttonDistance: Integer;
|
||||
{$IFDEF LCL}
|
||||
{$IF LCL_FullVersion >= 1090000}
|
||||
imgres: TScaledImageListResolution;
|
||||
@ -170,6 +171,7 @@ begin
|
||||
// horizontally
|
||||
dy := ScaleY(LARGE_ICON_TEXT_DISTANCE, DesignTimeDPI);
|
||||
dx := ScaleX(SMALL_ICON_TEXT_DISTANCE, DesignTimeDPI);
|
||||
buttonDistance := ScaleY(BUTTON_DISTANCE, DesignTimeDPI);
|
||||
|
||||
{ If an image list is assigned then use the image size.
|
||||
If no image list is assinged then assume a 32 x 32 image size.
|
||||
@ -194,7 +196,7 @@ begin
|
||||
exit;
|
||||
|
||||
// Distance of top-most icon to the last upper button
|
||||
Inc(CurPos, ScaleY(BUTTON_DISTANCE, DesignTimeDPI));
|
||||
Inc(CurPos, buttonDistance);
|
||||
|
||||
with nabItemsRect^ do begin
|
||||
Top := CurPos;
|
||||
|
Reference in New Issue
Block a user