one more problem in the same example

git-svn-id: trunk@15619 -
This commit is contained in:
paul 2008-06-30 07:08:22 +00:00
parent 7a8b551fb9
commit 9b8ffbea8c

View File

@ -70,7 +70,7 @@ begin
if TrackBar1.Enabled then
begin
TrackBar1.Min := 0;
TrackBar1.Max := TCustomIcon(Image1.Picture.Graphic).Count;
TrackBar1.Max := TCustomIcon(Image1.Picture.Graphic).Count - 1;
TrackBar1.Position := TCustomIcon(Image1.Picture.Graphic).Current;
TrackBar1Change(TrackBar1);
end;