home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2002 November
/
Chip_2002-11_cd1.bin
/
zkuste
/
vbasic
/
Data
/
Utils
/
WME71SDK.exe
/
RCDATA
/
CABINET
/
frmconfigure.frm
< prev
next >
Wrap
Text File
|
2001-03-02
|
3KB
|
118 lines
VERSION 5.00
Object = "{C4941F47-8BC1-49D3-9989-2B7826F26AE6}#1.0#0"; "MSPShell.dll"
Begin VB.Form FrmConfigure
BorderStyle = 3 'Fixed Dialog
Caption = "Configure Encoder"
ClientHeight = 5730
ClientLeft = 2310
ClientTop = 1455
ClientWidth = 7410
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 5730
ScaleWidth = 7410
ShowInTaskbar = 0 'False
StartUpPosition = 1 'CenterOwner
Begin MSPROPSHELLLibCtl.MSPropShell PropPageShell
Height = 5175
Left = 0
OleObjectBlob = "FrmConfigure.frx":0000
TabIndex = 0
Top = 0
Width = 7335
End
Begin VB.CommandButton CmdCancel
Cancel = -1 'True
Caption = "Cancel"
Height = 375
Left = 6180
TabIndex = 2
Top = 5280
Width = 1155
End
Begin VB.CommandButton CmdOk
Caption = "OK"
Default = -1 'True
Height = 375
Left = 4920
TabIndex = 1
Top = 5280
Width = 1155
End
End
Attribute VB_Name = "FrmConfigure"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
' Keep track of the Encoder we are told to configure
Dim EncoderConfig As WMEncoder
Private Sub CmdCancel_Click()
' Goodbye!
Unload Me
End Sub
Private Sub CmdOk_Click()
On Error GoTo err_handler
' Apply any changes to the Property Pages to the Encoder
PropPageShell.Apply
' Goodbye!
EncoderConfig.PrepareToEncode (True)
Unload Me
Exit Sub
err_handler:
MsgBox "Error applying the configuration parameters to the encoder"
End Sub
Private Sub Form_Load()
' Create the Encoder Property Pages
Dim PpgSources As New WMEncSourcesAltPage
Dim PpgDesc As New WMEncDisplayInfoPage
Dim PpgAttr As New WMEncAttributesPage
Dim PpgEnc As New WMEncProfilePage
Dim PpgOutput As New WMEncOutputPage
On Error GoTo err_handler
' Add the Encoder to the Page Shell
PropPageShell.AddObject EncoderConfig
' Add the Encoder Property Pages to the Page Shell
PropPageShell.AddPage PpgSources
PropPageShell.AddPage PpgDesc
PropPageShell.AddPage PpgAttr
PropPageShell.AddPage PpgEnc
PropPageShell.AddPage PpgOutput
Exit Sub
err_handler:
MsgBox "Error adding encoder property pages"
End Sub
Public Property Set EncoderMain(vNewValue As WMEncoder)
' Remember the supplied Encoder
Set EncoderConfig = vNewValue
End Property