home *** CD-ROM | disk | FTP | other *** search
/ Multimedia SongBook / SongBook.iso / controls / frmprogr.frm < prev    next >
Text File  |  1994-07-27  |  3KB  |  100 lines

  1. VERSION 2.00
  2. Begin Form frmProgramList 
  3.    BackColor       =   &H00C0C0C0&
  4.    BorderStyle     =   3  'Fixed Double
  5.    Caption         =   "Select Program List"
  6.    ClientHeight    =   3045
  7.    ClientLeft      =   5565
  8.    ClientTop       =   2625
  9.    ClientWidth     =   4395
  10.    Height          =   3450
  11.    Left            =   5505
  12.    LinkTopic       =   "Form1"
  13.    MaxButton       =   0   'False
  14.    MinButton       =   0   'False
  15.    ScaleHeight     =   3045
  16.    ScaleWidth      =   4395
  17.    Top             =   2280
  18.    Width           =   4515
  19.    Begin CommandButton Command2 
  20.       Caption         =   "&Help"
  21.       Height          =   330
  22.       Left            =   2745
  23.       TabIndex        =   0
  24.       Top             =   2415
  25.       Width           =   1005
  26.    End
  27.    Begin CommandButton Command1 
  28.       Caption         =   "&Cancel"
  29.       Height          =   330
  30.       Left            =   1620
  31.       TabIndex        =   4
  32.       Top             =   2415
  33.       Width           =   1005
  34.    End
  35.    Begin CommandButton OK 
  36.       Caption         =   "&OK"
  37.       Height          =   330
  38.       Left            =   495
  39.       TabIndex        =   3
  40.       Top             =   2415
  41.       Width           =   1005
  42.    End
  43.    Begin SSFrame Frame3D1 
  44.       Caption         =   " Program Lists "
  45.       Font3D          =   0  'None
  46.       Height          =   2055
  47.       Left            =   45
  48.       TabIndex        =   1
  49.       Top             =   45
  50.       Width           =   4110
  51.       Begin ListBox List1 
  52.          Height          =   1395
  53.          Left            =   180
  54.          TabIndex        =   2
  55.          Top             =   390
  56.          Width           =   3750
  57.       End
  58.    End
  59. End
  60. Option Explicit
  61.  
  62. Sub Command1_Click ()
  63.     Unload frmProgramList
  64. End Sub
  65.  
  66. Sub Command2_Click ()
  67.     SendKeys "{F1}"
  68. End Sub
  69.  
  70. Sub Form_Load ()
  71.     LoadProgramLists
  72. End Sub
  73.  
  74. Sub List1_DblClick ()
  75.     Dim theList%
  76.  
  77.     Screen.MousePointer = 11
  78.     If frmProgramList.List1.ListIndex <> -1 Then
  79.         frmProgramList.Hide
  80.         theList% = frmProgramList.List1.ListIndex
  81.         LoadNewProgram theList%
  82.     End If
  83.     Unload frmProgramList
  84.     Screen.MousePointer = 0
  85. End Sub
  86.  
  87. Sub OK_Click ()
  88.     Dim theList%
  89.  
  90.     Screen.MousePointer = 11
  91.     If frmProgramList.List1.ListIndex <> -1 Then
  92.         frmProgramList.Hide
  93.         theList% = frmProgramList.List1.ListIndex
  94.         LoadNewProgram theList%
  95.     End If
  96.     Unload frmProgramList
  97.     Screen.MousePointer = 0
  98. End Sub
  99.  
  100.