home *** CD-ROM | disk | FTP | other *** search
/ Windows Game Programming for Dummies (2nd Edition) / WinGamProgFD.iso / pc / DirectX SDK / DXSDK / samples / Multimedia / VBSamples / DirectShow / Editing / DexterVB / frmEffect.frm (.txt) < prev    next >
Encoding:
Visual Basic Form  |  2001-10-08  |  10.1 KB  |  257 lines

  1. VERSION 5.00
  2. Begin VB.Form frmEffect 
  3.    Caption         =   "Effect Form"
  4.    ClientHeight    =   2640
  5.    ClientLeft      =   60
  6.    ClientTop       =   345
  7.    ClientWidth     =   6045
  8.    Icon            =   "frmEffect.frx":0000
  9.    LinkTopic       =   "Form2"
  10.    LockControls    =   -1  'True
  11.    ScaleHeight     =   2640
  12.    ScaleWidth      =   6045
  13.    StartUpPosition =   1  'CenterOwner
  14.    Begin VB.Frame fraFixture 
  15.       Height          =   2115
  16.       Left            =   75
  17.       TabIndex        =   7
  18.       Top             =   0
  19.       Width           =   5865
  20.       Begin VB.TextBox txtStartTime 
  21.          Height          =   375
  22.          Left            =   1710
  23.          TabIndex        =   1
  24.          Top             =   695
  25.          Width           =   3975
  26.       End
  27.       Begin VB.TextBox txtStopTime 
  28.          Height          =   375
  29.          Left            =   1710
  30.          TabIndex        =   2
  31.          Top             =   1140
  32.          Width           =   3975
  33.       End
  34.       Begin VB.ComboBox cmbEffect 
  35.          Height          =   315
  36.          Left            =   1710
  37.          Sorted          =   -1  'True
  38.          TabIndex        =   0
  39.          Top             =   300
  40.          Width           =   3975
  41.       End
  42.       Begin VB.TextBox txtPriority 
  43.          Height          =   375
  44.          Left            =   1710
  45.          TabIndex        =   3
  46.          ToolTipText     =   "-1"
  47.          Top             =   1600
  48.          Width           =   3975
  49.       End
  50.       Begin VB.Label lblEffect 
  51.          Caption         =   "Effect"
  52.          Height          =   255
  53.          Left            =   150
  54.          TabIndex        =   11
  55.          Top             =   300
  56.          Width           =   1695
  57.       End
  58.       Begin VB.Label lblStart 
  59.          Caption         =   "Start"
  60.          Height          =   255
  61.          Left            =   150
  62.          TabIndex        =   10
  63.          Top             =   780
  64.          Width           =   1095
  65.       End
  66.       Begin VB.Label lblStop 
  67.          Caption         =   "Stop"
  68.          Height          =   255
  69.          Left            =   150
  70.          TabIndex        =   9
  71.          Top             =   1260
  72.          Width           =   615
  73.       End
  74.       Begin VB.Label lblPriority 
  75.          Caption         =   "Priority"
  76.          Height          =   255
  77.          Left            =   150
  78.          TabIndex        =   8
  79.          Top             =   1740
  80.          Width           =   615
  81.       End
  82.    End
  83.    Begin VB.CommandButton cmdOk 
  84.       Caption         =   "OK"
  85.       Default         =   -1  'True
  86.       Height          =   340
  87.       Left            =   3540
  88.       TabIndex        =   4
  89.       Top             =   2220
  90.       Width           =   1095
  91.    End
  92.    Begin VB.CommandButton cmdCancel 
  93.       Caption         =   "Cancel"
  94.       Height          =   340
  95.       Left            =   4740
  96.       TabIndex        =   5
  97.       Top             =   2220
  98.       Width           =   1215
  99.    End
  100.    Begin VB.TextBox GetSubObjectGUIDB 
  101.       Height          =   375
  102.       Left            =   4650
  103.       TabIndex        =   6
  104.       Top             =   2775
  105.       Visible         =   0   'False
  106.       Width           =   1335
  107.    End
  108. Attribute VB_Name = "frmEffect"
  109. Attribute VB_GlobalNameSpace = False
  110. Attribute VB_Creatable = False
  111. Attribute VB_PredeclaredId = True
  112. Attribute VB_Exposed = False
  113. '*******************************************************************************
  114. '*       This is a part of the Microsoft DXSDK Code Samples.
  115. '*       Copyright (C) 1999-2001 Microsoft Corporation.
  116. '*       All rights reserved.
  117. '*       This source code is only intended as a supplement to
  118. '*       Microsoft Development Tools and/or SDK documentation.
  119. '*       See these sources for detailed information regarding the
  120. '*       Microsoft samples programs.
  121. '*******************************************************************************
  122. Option Explicit
  123. Option Base 0
  124. Option Compare Text
  125. Private m_intUnloadMode As Integer
  126. Private Const DIALOG_TITLE = "Effect Help"
  127. ' **************************************************************************************************************************************
  128. ' * PUBLIC INTERFACE- PROPERTIES
  129.             ' ******************************************************************************************************************************
  130.             ' * procedure name: UnloadMode
  131.             ' * procedure description:  Returns an integer specifying the method from which this dialog was last unloaded
  132.             ' *
  133.             ' ******************************************************************************************************************************
  134.             Public Property Get UnloadMode() As Integer
  135.             On Local Error GoTo ErrLine
  136.             'return the value to the client
  137.             UnloadMode = m_intUnloadMode
  138.             Exit Property
  139.             
  140. ErrLine:
  141.             Err.Clear
  142.             Exit Property
  143.             End Property
  144.             
  145.             
  146. ' **************************************************************************************************************************************
  147. ' * PRIVATE INTERFACE- FORM EVENT HANDLERS
  148.             ' ******************************************************************************************************************************
  149.             ' * procedure name: Form_Load
  150.             ' * procedure description:  Occurs when a form is loaded.
  151.             ' *
  152.             ' ******************************************************************************************************************************
  153.             Private Sub Form_Load()
  154.             On Local Error GoTo ErrLine
  155.             'set default value(s)
  156.             With cmbEffect
  157.                 .AddItem "BasicImage"
  158.                 .AddItem "Blur"
  159.                 .AddItem "Chroma"
  160.                 .AddItem "DropShadow"
  161.                 .AddItem "Emboss"
  162.                 .AddItem "Engrave"
  163.                 .AddItem "Fade"
  164.                 .AddItem "Pixelate"
  165.             End With
  166.             Exit Sub
  167.             
  168. ErrLine:
  169.             Err.Clear
  170.             Exit Sub
  171.             End Sub
  172.             
  173.             
  174.             ' ******************************************************************************************************************************
  175.             ' * procedure name: Form_QueryUnload
  176.             ' * procedure description:  Occurs before a form or application closes.
  177.             ' *
  178.             ' ******************************************************************************************************************************
  179.             Private Sub Form_QueryUnload(Cancel As Integer, UnloadMode As Integer)
  180.             On Local Error GoTo ErrLine
  181.             
  182.             Select Case UnloadMode
  183.                 Case vbFormControlMenu
  184.                          '0 The user chose the Close command from the Control menu on the form.
  185.                          Cancel = 1: Me.Visible = False
  186.                 Case vbFormCode
  187.                          '1 The Unload statement is invoked from code.
  188.                 Case vbAppWindows
  189.                          '2 The current Microsoft Windows operating environment session is ending.
  190.                 Case vbAppTaskManager
  191.                          '3 The Microsoft Windows Task Manager is closing the application.
  192.                          End
  193.                 Case vbFormMDIForm
  194.                          '4 An MDI child form is closing because the MDI form is closing.
  195.                 Case vbFormOwner
  196.                          '5 A form is closing because its owner is closing
  197.             End Select
  198.             Exit Sub
  199.             
  200. ErrLine:
  201.             Err.Clear
  202.             Exit Sub
  203.             End Sub
  204.             
  205.             
  206.             ' ******************************************************************************************************************************
  207.             ' * procedure name: Form_Unload
  208.             ' * procedure description:  Occurs when a form is about to be removed from the screen.
  209.             ' *
  210.             ' ******************************************************************************************************************************
  211.             Private Sub Form_Unload(Cancel As Integer)
  212.             On Local Error GoTo ErrLine
  213.             With Me
  214.                .Move 0 - (Screen.Width * 8), 0 - (Screen.Height * 8): .Visible = False
  215.             End With
  216.             Exit Sub
  217.             
  218. ErrLine:
  219.             Err.Clear
  220.             Exit Sub
  221.             End Sub
  222. ' **************************************************************************************************************************************
  223. ' * PRIVATE INTERFACE- CONTROL EVENT HANDLERS
  224.             ' ******************************************************************************************************************************
  225.             ' * procedure name: cmdOk_Click
  226.             ' * procedure description:  occures when the 'Ok' command button is pressed
  227.             ' *
  228.             ' ******************************************************************************************************************************
  229.             Private Sub cmdOk_Click()
  230.             On Local Error GoTo ErrLine
  231.             'hide the dialog
  232.             Me.Visible = False
  233.             Exit Sub
  234.             
  235. ErrLine:
  236.             Err.Clear
  237.             Exit Sub
  238.             End Sub
  239.             
  240.             
  241.             ' ******************************************************************************************************************************
  242.             ' * procedure name: cmdCancel_Click
  243.             ' * procedure description:  occures when the 'Cancel' command button is pressed
  244.             ' *
  245.             ' ******************************************************************************************************************************
  246.             Private Sub cmdCancel_Click()
  247.             On Local Error GoTo ErrLine
  248.             'hide the dialog
  249.             Me.Visible = False
  250.             m_intUnloadMode = 1
  251.             Exit Sub
  252.             
  253. ErrLine:
  254.             Err.Clear
  255.             Exit Sub
  256.             End Sub
  257.