|
-
Jun 9th, 2001, 03:03 PM
#1
marquee
How can i have the text on my prog scrool across the form. like a marquee.
-
Jun 9th, 2001, 04:00 PM
#2
transcendental analytic
Set the CurrentX and CurrentY on the form to position next output and use Print method on the form to print the text on it. Declare a decrementing counter variable which you use in a timer and change CurrentX accordingly before you print.
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.
-
Jun 10th, 2001, 01:49 PM
#3
Good Ol' Platypus
VB Code:
Option Explicit
Dim XVal
Dim Phrase as String
Private Sub Form_Load()
Me.ScaleMode = vbPixels
Label1.Autosize = True
Label1.Caption = Phrase
Label1.Visible = False
End Sub
Private Sub Timer1_Timer()
XVal = XVal + 1
If XVal > Me.ScaleWidth + Label1.Width * 2 Then XVal = 0
Me.CurrentX = Xval - Label1.Width
Me.Print Phrase
End Sub
All contents of the above post that aren't somebody elses are mine, not the property of some media corporation. 
(Just a heads-up)
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
|