home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Object = "*\AScrlImg.vbp"
- Begin VB.Form VideoForm
- Caption = "Scrolling Image Video"
- ClientHeight = 2865
- ClientLeft = 60
- ClientTop = 345
- ClientWidth = 4890
- LinkTopic = "Form1"
- ScaleHeight = 2865
- ScaleWidth = 4890
- StartUpPosition = 3 'Windows Default
- Begin ScrollingImage.ScrollImgBox ScrollImgBox1
- Height = 2055
- Left = 120
- TabIndex = 2
- Top = 120
- Width = 4575
- _ExtentX = 8070
- _ExtentY = 3625
- PictureWidth = 498
- PictureHeight = 226
- Picture = "VidForm.frx":0000
- End
- Begin VB.CommandButton Command2
- Caption = "Load Image"
- BeginProperty Font
- Name = "Verdana"
- Size = 9.75
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 420
- Left = 135
- TabIndex = 0
- Top = 2340
- Width = 1575
- End
- Begin VB.CommandButton Command1
- Caption = "Scroll Image"
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 9.75
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 405
- Left = 3195
- TabIndex = 1
- Top = 2340
- Width = 1560
- End
- Attribute VB_Name = "VideoForm"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Option Explicit
- Private Sub Command1_Click()
- Dim i As Integer
- Dim j As Integer
- Dim VWidth As Integer
- VWidth = ScrollImgBox1.PictureWidth - ScrollImgBox1.VisibleWidth
- For i = 0 To 90
- ScrollImgBox1.ScrollTo 0, i
- DoEvents
- Next
- For i = 0 To VWidth
- ScrollImgBox1.ScrollTo i, 90
- DoEvents
- Next
- For i = 90 To 40 Step -1
- ScrollImgBox1.ScrollTo VWidth, i
- DoEvents
- Next
- For i = VWidth To 0 Step -1
- ScrollImgBox1.ScrollTo i, 40
- DoEvents
- Next
- End Sub
- Private Sub Command2_Click()
- ScrollImgBox1.PictureFromURL = "http://127.0.0.1/nysky.gif"
- End Sub
-