ایجاد افکت با تایمر در TXT

با درود و سپاس

 

ایجاد افکت با تایمر در TXT

 

دانلود سورس

 

 

#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
	'These global variables will be redeclared each time the activity is created.
	'These variables can only be accessed from this module.
    Dim tm1  As Timer
    Dim plas As Int = 0
	Private logo_txt As EditText
End Sub

Sub Activity_Create(FirstTime As Boolean)
	'Do not forget to load the layout file created with the visual designer. For example:
	Activity.LoadLayout("sasa")
	tm1.Initialize("tm1",500)
	tm1.Enabled = True
End Sub
Sub tm1_Tick


 If plas = 0 Then 
	   logo_txt.Text = ""
	   
Else If plas = 1 Then  
	    logo_txt.Text = "s"	   
	   
Else If plas = 2 Then  
	    logo_txt.Text = "sy"
		
Else If plas = 3 Then  
	    logo_txt.Text = "sye"	
	
Else If plas = 4 Then  
	    logo_txt.Text = "syed"
	
Else If plas = 5 Then  
	    logo_txt.Text = "syed E"	
	
Else If plas = 6 Then  
	    logo_txt.Text = "syed Es"	
	
Else If plas = 7 Then  
	    logo_txt.Text = "syed Esm"	
		
Else If plas = 8 Then  
	    logo_txt.Text = "syed Esma"	
		
Else If plas = 9 Then  
	    logo_txt.Text = "syed Esmae"

Else If plas = 10 Then  
	    logo_txt.Text = "syed Esmaei"
		
Else If plas = 11 Then  
	    logo_txt.Text = "syed Esmaeil"
End If 


plas = plas  + 1 


If plas = 12 Then  
   plas = 0
End If    
	
End Sub
Sub Activity_Resume

End Sub

Sub Activity_Pause (UserClosed As Boolean)

End Sub

 

دیدگاهتان را بنویسید