VB icon

Animation Status bar

Email
Submitted on: 1/2/2015 9:42:00 PM
By: G.B.R.Nilantha Athurupana (from psc cd)  
Level: Not Given
User Rating: By 3 Users
Compatibility: VB 5.0, VB 6.0
Views: 444
 
     Easy! without API. Only a few lines of code.You can scroll your Status bar panel's text and You can modify suit to you.I hope you enjoy & your correctons,comments,Ideas are very gratefully. G.B.R.Nilantha Athurupana. Wattarama,Imbulgasdeniya,Sri Lanka.(94-03744479, E-Mail: crysbro@cga.lk)
 
code:
Can't Copy and Paste this?
Click here for a copy-and-paste friendly version of this code!
				
'**************************************
' Name: Animation Status bar
' Description:Easy! without API. Only a few lines of code.You can scroll your Status bar panel's text and You can modify suit to you.I hope you enjoy & your correctons,comments,Ideas are very gratefully.
G.B.R.Nilantha Athurupana.
Wattarama,Imbulgasdeniya,Sri Lanka.(94-03744479, E-Mail: crysbro@cga.lk)
' By: G.B.R.Nilantha Athurupana (from psc cd)
'
' Assumes:'Create a new form (Any Name you can use). Add a Timer control (Timer1)Required 'follwing ActiveX OCX to create a Status Bar Control(It name must be (SB)
'Microsoft Windows Common controls 5.0(SP2)
'**************************************

'General Deciarations
Dim C As String 'to store panel's text
Dim CO As Integer 'to store text length
Dim FS As Long 'to store Panels Width
Private Sub MDIForm_Load()
 Timer1.Interval = 100
 SB.Panels(1).Text = "Nilantha Athurupana"
 C = SB.Panels(1).Text
 CO = Len(C) + 1
 SB.Panels(1).Text = ""
 FS = SB.Panels(1).Width
End Sub
Private Sub Timer1_Timer()
On Error GoTo ATH
 Static C01 As Integer ' Counter 1
 Static CO2 As Integer ' Counter 2
 Static A As String 'To move text
 
 Dim R As String 'Restore text
 Dim T As String 'Restore text
 
XX:
 If CO > 0 Then
C01 = CO
T = Mid(C, C01, 1)
CO = CO - 1
R = " "
Mid(R, 1) = T
SB.Panels(1).Text = R & SB.Panels(1).Text
 Else
A = A & " "
R = " "
Mid(R, 1) = A
SB.Panels(1).Text = R & SB.Panels(1).Text
 End If
 
 If CO2 >= FS Then
CO2 = 0
CO = Len(C)
SB.Panels(1).Text = ""
GoTo XX
 Else
CO2 = CO2 + 35 'please edit this value according to your text length.
 End If
 Exit Sub
ATH:
End Sub


Other 1 submission(s) by this author

 


Report Bad Submission
Use this form to tell us if this entry should be deleted (i.e contains no code, is a virus, etc.).
This submission should be removed because:

Your Vote

What do you think of this code (in the Not Given category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor (See voting log ...)
 

Other User Comments


 There are no comments on this submission.
 

Add Your Feedback
Your feedback will be posted below and an email sent to the author. Please remember that the author was kind enough to share this with you, so any criticisms must be stated politely, or they will be deleted. (For feedback not related to this particular code, please click here instead.)
 

To post feedback, first please login.