Welcome to the new platform of Programmers Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use it's exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
Here's what i got :
1 form (form1)
1 Timage Object (img)
1 timer (timer1)
1 Button (btn)
1 variable named X
if timer1.enabled then
if (x>=10) and not(x<=215) then
img.width:=img.width + 1;
end else begin
img.width := img.width - 1;
As you can see im trying to increase img's width
and decrease it back to custom size (in both cases).
(in infinite loop)
Well , for some reason it justs goes from its current position to 10.
Can someone fix my code ?
thanks for reading my thread :>