Important alert: (current site time 7/16/2013 2:09:15 AM EDT)
 

VB icon

______________...:::Smooth Scroll & Winzip:::...___

Email
Submitted on: 2/26/2003 7:11:05 AM
By: SIJO Soft Corp  
Level: Beginner
User Rating: By 2 Users
Compatibility: VB 5.0, VB 6.0
Views: 15204
author picture
(About the author)
 
     Smoothly scrolls either text, graphics or controls across a form. And Winzip reg..

 

Windows API/Global Declarations:

Can't Copy and Paste this?
Click here for a copy-and-paste friendly version of this code!
'**************************************
'Windows API/Global Declarations for :______________...:::Smooth Scroll & Winzip:::...___
'**************************************
Public Declare Function BitBlt Lib "GDI32" (ByVal hDestDC As Integer, ByVal X As Integer, ByVal Y As Integer, ByVal nWidth As Integer, ByVal nHeight As Integer, ByVal hSrcDC As Integer, ByVal XSrc As Integer, ByVal YSrc As Integer, ByVal dwRop As Long) As Integer
Dim thetop As Long
Dim p1hgt As Long
Dim p1wid As Long
Dim theleft As Long
code:
Can't Copy and Paste this?
Click here for a copy-and-paste friendly version of this code!
 
Terms of Agreement:   
By using this code, you agree to the following terms...   
  1. You may use this code in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.
  2. You MAY NOT redistribute this code (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.   
  3. You may link to this code from another website, but ONLY if it is not wrapped in a frame. 
  4. You will abide by any additional copyright restrictions which the author may have placed in the code or code's description.
				
'**************************************
' Name: ______________...:::Smooth Scroll & Winzip:::...___
' Description:Smoothly scrolls either text, graphics or controls across a form. And Winzip reg..
' By: SIJO Soft Corp
'
' Assumes:Register your copy of Winzip with my Registration ID
Username : Sijo K Jose
SerialNo : 5bbb12bc
'
'This code is copyrighted and has' limited warranties.Please see http://www.Planet-Source-Code.com/vb/scripts/ShowCode.asp?txtCodeId=43560&lngWId=1'for details.'**************************************

Sub centerIT (C As Control, Txt As String)
C.CurrentX = (C.ScaleWidth - C.TextWidth(Txt)) / 2
C.Print Txt
End Sub
'Sub Form_Load ()
p1.autoredraw = true
p1.visible = false
p1.FontSize = 12
p1.ForeColor = &HFF0000
p1.BackColor = BackColor
p1.ScaleMode = 3
centerIT p1, "Xtreme Software"
centerIT p1, "<< Master Add-In 3.0 >>"
ScaleMode = 3
theleft = (ScaleWidth - p1.TextWidth("Scroll Test...")) / 2
thetop = ScaleHeight
p1hgt = p1.ScaleHeight
p1wid = p1.ScaleWidth
timer1.Enabled = True
timer1.Interval = 10
'End Sub
'Sub Timer1_Timer ()
X% = BitBlt(hDC, theleft, thetop, p1wid, p1hgt, p1.hDC, 0, 0, &HCC0020)
thetop = thetop - 1
If thetop < -p1hgt Then
Timer1.Enabled = False
Txt$ = "Finished With Scrolling"
CurrentY = ScaleHeight / 2
CurrentX = (ScaleWidth - TextWidth(Txt$)) / 2
Print Txt$
 End If
'End Sub


Other 13 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 Beginner 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

2/28/2003 1:39:56 AM

How would you use this code ?
Thank you

(If this comment was disrespectful, please report it.)

 
2/28/2003 1:51:53 PM

give me a example of account receivable system of billing system
(If this comment was disrespectful, please report it.)

 
10/15/2007 9:27:00 AMSGM

When I tried use it, as soon as it enters the first Timer1 event, I receive a OVERFLOW error?
What to do?
(If this comment was disrespectful, please report it.)

 
10/30/2008 10:28:10 PMvenjoz

It needs the full files maybe...
tnx...

(If this comment was disrespectful, please report it.)

 

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.