sibutr Member Licensed User Longtime User Sep 7, 2015 #1 Sub Globals DimButton1AsButton : DimBitmapTempAsBitmap : PrivateImageView1AsImageView End Sub Sub Activity_Create(FirstTime AsBoolean) Activity.LoadLayout("LayOutTest") End Sub Sub Button1_Click For N = 1 To 6 BitmapTemp.Initialize(File.DirAssets, N & ".jpg") ImageView1.Bitmap = BitmapTemp Button1.Text= N For t = 1 To 60000000 : Next ' Delaying ( Pause )Next End Sub Attachments ImageViewTest.zip 392.2 KB · Views: 284 Last edited: Sep 7, 2015
Sub Globals DimButton1AsButton : DimBitmapTempAsBitmap : PrivateImageView1AsImageView End Sub Sub Activity_Create(FirstTime AsBoolean) Activity.LoadLayout("LayOutTest") End Sub Sub Button1_Click For N = 1 To 6 BitmapTemp.Initialize(File.DirAssets, N & ".jpg") ImageView1.Bitmap = BitmapTemp Button1.Text= N For t = 1 To 60000000 : Next ' Delaying ( Pause )Next End Sub
DonManfred Expert Licensed User Longtime User Sep 7, 2015 #2 sibutr said: For t = 1 To 60000000 : Next ' Delaying ( Pause ) Click to expand... You CAN NOT stop the main thread. It works. But all you can see is probably just the LAST image... Upvote 0
sibutr said: For t = 1 To 60000000 : Next ' Delaying ( Pause ) Click to expand... You CAN NOT stop the main thread. It works. But all you can see is probably just the LAST image...
Johan Schoeman Expert Licensed User Longtime User Sep 7, 2015 #3 Try the attached. It will change when you click the button. If you want a delay then you should use a timer and not a for/next loop Attachments ImageViewTest.zip 30.4 KB · Views: 252 Upvote 0
Try the attached. It will change when you click the button. If you want a delay then you should use a timer and not a for/next loop
Johan Schoeman Expert Licensed User Longtime User Sep 7, 2015 #4 And this will do it automatically with a timer (i.e without having to click the button) Attachments ImageViewTest.zip 30.5 KB · Views: 259 Upvote 0
sibutr Member Licensed User Longtime User Sep 8, 2015 #5 Thanks Johan, now I have my working Code. Attachments ImageViewTest.zip 428.8 KB · Views: 306 Upvote 0