|
-
Apr 12th, 2000, 03:20 AM
#1
Thread Starter
Member
Hi there...
How can i get a moving text on a status bar control?
Does anybody know some code????
betto 
[email protected]
-
Apr 12th, 2000, 03:25 AM
#2
transcendental analytic
If you mean how to scroll the text you can set a timer to run this:
Code:
Private Sub Timer1_Timer()
StatusBar.Panels(1).Text = Mid(StatusBar.Panels(1).Text, 2) & Left(StatusBar.Panels(1).Text, 1)
End Sub
Use  
writing software in C++ is like driving rivets into steel beam with a toothpick.
writing haskell makes your life easier:
reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.
-
Apr 12th, 2000, 04:04 AM
#3
Thread Starter
Member
It's almost
it's almost...
I meant throw the status bar... from right to left.
Besides it's in style 1 ... it's with simpletext property.
i got it.. but i used a big space " "
or larger, later i started to cut it... but it's not seem to me something elegant..
Do you know something better???
-
Apr 12th, 2000, 04:33 AM
#4
transcendental analytic
You may throw a panel from right to left, if you put a panel before it (with no bevel) to go smaller and smaller...
Hope this wasn't what you didn't want
Use  
writing software in C++ is like driving rivets into steel beam with a toothpick.
writing haskell makes your life easier:
reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.
-
Apr 12th, 2000, 05:04 AM
#5
Thread Starter
Member
I made this:
Code:
Private Sub Form_Load()
StatusBar1.SimpleText = "[email protected]"
End Sub
Private Sub Timer1_Timer()
StatusBar1.SimpleText = " " & StatusBar1.SimpleText
If Len(StatusBar1.SimpleText) > 250 Then
StatusBar1.SimpleText = "[email protected]"
End If
End Sub
but it reaches only the half of status bar in style 1.
I dont exactly how long the status bar is... and if it have a middle panel.. because the text disapear at the half
Why???
-
Apr 12th, 2000, 05:15 AM
#6
transcendental analytic
Don't ask me, the statusbar control, is not good enough for you. Try setting up another panel, doing this thing, and move your text by setting the width of that panel.
Use  
writing software in C++ is like driving rivets into steel beam with a toothpick.
writing haskell makes your life easier:
reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.
-
Apr 13th, 2000, 03:31 AM
#7
Thread Starter
Member
Ok...
but .. why do you bother at me?? 
I hope I wouldn't have said anything which offend you..
betto 
-
Apr 13th, 2000, 04:42 AM
#8
Try:
Code:
Private Sub Form_Load()
StatusBar1.Panels(1).Width = ScaleWidth
StatusBar1.Tag = "[email protected]"
StatusBar1.Panels(1) = StatusBar1.Tag
Timer1.Interval = 100
End Sub
Private Sub Timer1_Timer()
If (TextWidth(StatusBar1.Panels(1)) - TextWidth(StatusBar1.Tag)) < StatusBar1.Panels(1).Width Then
'Move it to the Right
StatusBar1.Panels(1) = " " & StatusBar1.Panels(1)
Else
StatusBar1.Panels(1) = StatusBar1.Tag
End If
End Sub
[Edited by Aaron Young on 04-13-2000 at 04:42 PM]
-
Apr 13th, 2000, 05:04 AM
#9
Thread Starter
Member
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|