vbAccelerator - Contents of code file: frmPickIcon.frm

VERSION 5.00
Object = "{367CCB3A-CA52-4D51-ADB9-73EB43B5D7B6}#1.0#0"; "vbalIconPicker6.ocx"
Begin VB.Form frmPickIcon 
   BorderStyle     =   3  'Fixed Dialog
   Caption         =   "Choose Icon"
   ClientHeight    =   4230
   ClientLeft      =   5055
   ClientTop       =   4530
   ClientWidth     =   4530
   BeginProperty Font 
      Name            =   "Tahoma"
      Size            =   8.25
      Charset         =   0
      Weight          =   400
      Underline       =   0   'False
      Italic          =   0   'False
      Strikethrough   =   0   'False
   EndProperty
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   4230
   ScaleWidth      =   4530
   ShowInTaskbar   =   0   'False
   Begin IconPickerLib6.ctlIconPicker iconPicker 
      Height          =   3615
      Left            =   60
      TabIndex        =   2
      Top             =   60
      Width           =   4455
      _ExtentX        =   7858
      _ExtentY        =   6376
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "Tahoma"
         Size            =   8.25
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
   End
   Begin VB.CommandButton cmdOK 
      Caption         =   "OK"
      Default         =   -1  'True
      Height          =   435
      Left            =   1980
      TabIndex        =   1
      Top             =   3720
      Width           =   1215
   End
   Begin VB.CommandButton cmdCancel 
      Cancel          =   -1  'True
      Caption         =   "Cancel"
      Height          =   435
      Left            =   3240
      TabIndex        =   0
      Top             =   3720
      Width           =   1215
   End
End
Attribute VB_Name = "frmPickIcon"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit

Private m_bCancel As Boolean
Private m_sIconFile As String
Private m_lIconIndex As Long

Public Property Get IconFile() As String
   IconFile = m_sIconFile
End Property
Public Property Let IconFile(ByVal sFile As String)
   m_sIconFile = sFile
End Property
Public Property Get Cancelled() As Boolean
   Cancelled = m_bCancel
End Property
Public Property Get IconIndex() As Long
   IconIndex = m_lIconIndex
End Property
Public Property Let IconIndex(ByVal lIconIndex As Long)
   m_lIconIndex = lIconIndex
End Property

Private Sub cmdCancel_Click()
   Unload Me
End Sub

Private Sub cmdOK_Click()
   m_sIconFile = iconPicker.Filename
   On Error Resume Next
   m_lIconIndex = iconPicker.SelectedIconResourceId
   m_bCancel = False
   Unload Me
End Sub

Private Sub Form_Load()
   m_bCancel = True
   iconPicker.SelectedIconResourceId = m_lIconIndex
   iconPicker.Filename = m_sIconFile
End Sub