من میخوام یه اسلاید شو درست کنم و از اون برای متحرک کردن تصویر زمینه برنامم استفاده کنم
اومدم یه امیج ویو گذاشتم و یه تایمر
تو ساب تایمر از حلقه استفاده کردم و یک متغییر تو حلقه گذاشتم
حالا هرکاری میکنم نمیتونم آدرس عکس رو از متغییر بگیرم
#Region Project Attributes
#ApplicationLabel: B4A Example
#VersionCode: 1
#VersionName:
'SupportedOrientations possible values: unspecified, landscape or portrait.
#SupportedOrientations: unspecified
#CanInstallToExternalStorage: False
#End Region
#Region Activity Attributes
#FullScreen: False
#IncludeTitle: True
#End Region
Sub Process_Globals
'These global variables will be declared once when the application starts.
'These variables can be accessed from all modules.
End Sub
Sub Globals
Private ImageView1 As ImageView
Dim t1 As Timer
End Sub
Sub Activity_Create(FirstTime As Boolean)
Activity.LoadLayout("main")
t1.Initialize("t1",3000)
t1.Enabled=True
End Sub
Sub t1_tick
Dim bgn As String
For i=0 To 3
bgn=i+1
Next
ImageView1.SetBackgroundImage(LoadBitmap(File.DirAssets,bgn))
End Sub
Sub Activity_Resume
End Sub
Sub Activity_Pause (UserClosed As Boolean)
End Sub
سوال
pourya-man 33
#Region Project Attributes #ApplicationLabel: B4A Example #VersionCode: 1 #VersionName: 'SupportedOrientations possible values: unspecified, landscape or portrait. #SupportedOrientations: unspecified #CanInstallToExternalStorage: False #End Region #Region Activity Attributes #FullScreen: False #IncludeTitle: True #End Region Sub Process_Globals 'These global variables will be declared once when the application starts. 'These variables can be accessed from all modules. End Sub Sub Globals Private ImageView1 As ImageView Dim t1 As Timer End Sub Sub Activity_Create(FirstTime As Boolean) Activity.LoadLayout("main") t1.Initialize("t1",3000) t1.Enabled=True End Sub Sub t1_tick Dim bgn As String For i=0 To 3 bgn=i+1 Next ImageView1.SetBackgroundImage(LoadBitmap(File.DirAssets,bgn)) End Sub Sub Activity_Resume End Sub Sub Activity_Pause (UserClosed As Boolean) End Subچه کنم ؟
لینک ارسال
به اشتراک گذاری در سایت های دیگر
8 پاسخ به این سوال تاکنون داده شده است
ارسالهای توصیه شده
بایگانی شده
این موضوع بایگانی و قفل شده و دیگر امکان ارسال پاسخ نیست.