Pictures!Posted by Tara on June 01, 2002 at 10:54:49: I'm making a tutorial for a school Tech assignment, and I'm completely stuck. I'll try and explain what I have, and what I want to do with it, so hopefully someone can help me out..! Basically, the tutorials are visual - there's an image, and a next button. Each time button is clicked, I want the image to change, until it has cycled through the entire tutorial. For example, I want tutorial001.bmp to change to tutorial002.bmp. I've played around for -ages-, and can't get anywhere..! The best I've got so far is this: procedure TTutorialBox.NextButtonClick(Sender: TObject); var tutorial: integer; count: integer; begin tutorial:= 2; count:=1; while count < 6 do begin; MapImage.Picture.LoadFromFile('tutorial00' + (IntToStr(tutorial)) + '.bmp'); tutorial:= tutorial + 1; count:= count + 1; end; end; It changes the image once, but then stays at tutorial002.bmp. Should I be using arrays? I know this is a big ask, but hopefully, someone can help me.. thanks loads!
|
|