www.pudn.com > AVPhone.zip > form5.frm


VERSION 5.00 
Begin VB.Form form5  
   BorderStyle     =   3  'Fixed Dialog 
   Caption         =   "Video Performance" 
   ClientHeight    =   2172 
   ClientLeft      =   1560 
   ClientTop       =   1920 
   ClientWidth     =   5136 
   Icon            =   "form5.frx":0000 
   LinkTopic       =   "Form5" 
   MaxButton       =   0   'False 
   MinButton       =   0   'False 
   ScaleHeight     =   2172 
   ScaleWidth      =   5136 
   ShowInTaskbar   =   0   'False 
   StartUpPosition =   1  'CenterOwner 
   Begin VB.CommandButton Command1  
      Cancel          =   -1  'True 
      Caption         =   "OK" 
      Default         =   -1  'True 
      Height          =   345 
      Left            =   3780 
      TabIndex        =   6 
      Top             =   480 
      Width           =   1065 
   End 
   Begin VB.HScrollBar HScroll2  
      Height          =   285 
      LargeChange     =   5 
      Left            =   360 
      Max             =   30 
      Min             =   1 
      TabIndex        =   1 
      Top             =   1500 
      Value           =   1 
      Width           =   2985 
   End 
   Begin VB.HScrollBar HScroll1  
      Height          =   285 
      LargeChange     =   10 
      Left            =   360 
      Max             =   99 
      TabIndex        =   0 
      Top             =   630 
      Width           =   2985 
   End 
   Begin VB.Label Label4  
      Caption         =   "Label4" 
      Height          =   255 
      Left            =   1560 
      TabIndex        =   5 
      Top             =   1170 
      Width           =   645 
   End 
   Begin VB.Label Label3  
      Caption         =   "&Speed:" 
      Height          =   225 
      Left            =   390 
      TabIndex        =   4 
      Top             =   1230 
      Width           =   855 
   End 
   Begin VB.Label Label2  
      Caption         =   "Label2" 
      Height          =   255 
      Left            =   1560 
      TabIndex        =   3 
      Top             =   330 
      Width           =   615 
   End 
   Begin VB.Label Label1  
      Caption         =   "&Quality:" 
      Height          =   225 
      Left            =   360 
      TabIndex        =   2 
      Top             =   360 
      Width           =   735 
   End 
End 
Attribute VB_Name = "form5" 
Attribute VB_GlobalNameSpace = False 
Attribute VB_Creatable = False 
Attribute VB_PredeclaredId = True 
Attribute VB_Exposed = False 
Option Explicit 
 
 
Private Sub Command1_Click() 
    On Error GoTo ErrorHandle 
    Unload Me 
    Exit Sub 
     
ErrorHandle: 
    ShowErr 
End Sub 
 
Private Sub Form_Load() 
    On Error GoTo ErrorHandle 
     
    HScroll1 = Form1.VidCap1.Quality 
     
    'if capture in process, read the capture speed 
    'otherwise read play back speed 
     
    If IsNull(Form1.VidCap1.BitmapFormat) Then 
        HScroll2 = Form1.VidRnd1.Rate 
    Else 
        HScroll2 = Form1.VidCap1.Rate 
    End If 
    Exit Sub 
     
ErrorHandle: 
    ShowErr 
End Sub 
 
Private Sub HScroll1_Change() 
    On Error GoTo ErrorHandle 
     
    'set quality 
    Form1.VidCap1.Quality = HScroll1 
    Label2 = HScroll1 & "%" 
    Exit Sub 
     
ErrorHandle: 
    ShowErr 
End Sub 
 
Private Sub HScroll2_Change() 
    On Error GoTo ErrorHandle 
     
    'set the speed 
     
    Form1.VidCap1.Rate = HScroll2 
    Form1.VidRnd1.Rate = HScroll2 
    Form3.VidRnd1.Rate = HScroll2 
    Form4.VidRnd1.Rate = HScroll2 
     
    Label4 = HScroll2 & "fps" 
    Exit Sub 
     
ErrorHandle: 
    ShowErr 
 
End Sub