mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-17 07:29:21 +02:00
LCL: task dialog: more image positioning fixes
This commit is contained in:
parent
8629548a7b
commit
0a3a47d7ae
@ -884,7 +884,9 @@ begin
|
|||||||
Image.ImageIndex := GetDialogImages.DialogIndexes[LCL_IMAGES[aDialogIcon]];
|
Image.ImageIndex := GetDialogImages.DialogIndexes[LCL_IMAGES[aDialogIcon]];
|
||||||
Image.SetBounds(IconBorder,IconBorder, 32, 32);
|
Image.SetBounds(IconBorder,IconBorder, 32, 32);
|
||||||
Image.Stretch := True;
|
Image.Stretch := True;
|
||||||
|
Image.StretchOutEnabled := False;
|
||||||
Image.Proportional := True;
|
Image.Proportional := True;
|
||||||
|
Image.Center := True;
|
||||||
X := Image.Width+IconBorder*2;
|
X := Image.Width+IconBorder*2;
|
||||||
Y := Image.Top;
|
Y := Image.Top;
|
||||||
if aEmulateClassicStyle then
|
if aEmulateClassicStyle then
|
||||||
@ -1080,7 +1082,9 @@ begin
|
|||||||
Image.ImageWidth := 16;
|
Image.ImageWidth := 16;
|
||||||
Image.ImageIndex := GetDialogImages.DialogIndexes[LCL_FOOTERIMAGES[aFooterIcon]];
|
Image.ImageIndex := GetDialogImages.DialogIndexes[LCL_FOOTERIMAGES[aFooterIcon]];
|
||||||
Image.Stretch := True;
|
Image.Stretch := True;
|
||||||
|
Image.StretchOutEnabled := False;
|
||||||
Image.Proportional := True;
|
Image.Proportional := True;
|
||||||
|
Image.Center := True;
|
||||||
Image.SetBounds(24,Y,16,16);
|
Image.SetBounds(24,Y,16,16);
|
||||||
X := 40+Image.Width;
|
X := 40+Image.Width;
|
||||||
end else
|
end else
|
||||||
|
Loading…
Reference in New Issue
Block a user