Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

BitBit to scroll text

Status
Not open for further replies.

lorenzodv

Programmer
Feb 16, 2001
95
IT
I'm trying making a line of text printed in a PictureBox scroll. I print the text with the following code:

Picture1.CurrentX = 0
Picture1.CurrentY = Picture1.ScaleHight
Picture1.Print "Text to scroll"

AutoRedraw is set to True.
I added Private declarations for BitBit and the SRCCOPY constant in General Declarations of the form, and now I put the following code into a Timer (Interval = 100) to scroll the text vertically.

Ret = BitBlt(Picture1.hDC, 0, 0, Picture1.ScaleWidth, _
Picture1.ScaleHeight, Picture1.hDC, 0, 1, SRCCOPY)

However, nothing happens. What am I doing wrong?
Thanks for your time.

--
Lorenzo

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top