home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Multimédia la Compil' 2
/
Sybex_Multimedia_La_Compil_2.iso
/
cooltool
/
songplay
/
midiset.frm
next >
Wrap
Text File
|
1995-04-20
|
2KB
|
86 lines
VERSION 2.00
Begin Form MIDISetupForm
BackColor = &H00C0C0C0&
BorderStyle = 3 'Fixed Double
Caption = "MIDI Setup"
ClientHeight = 1020
ClientLeft = 1095
ClientTop = 1485
ClientWidth = 4110
ControlBox = 0 'False
Height = 1425
Left = 1035
LinkTopic = "Form1"
MaxButton = 0 'False
ScaleHeight = 1020
ScaleWidth = 4110
Top = 1140
Width = 4230
Begin MIDIOutput MIDIOutput1
DeviceID = 0
Left = 2490
Top = 60
VolumeLeft = 0
VolumeRight = 0
End
Begin CommandButton CmdCancel
Caption = "Cancel"
Height = 375
Left = 2970
TabIndex = 1
Top = 480
Width = 1005
End
Begin CommandButton CmdOk
Caption = "Ok"
Height = 375
Left = 2970
TabIndex = 3
Top = 90
Width = 1005
End
Begin ComboBox ComboMidiOut
Height = 300
Left = 120
Style = 2 'Dropdown List
TabIndex = 0
Top = 480
Width = 2685
End
Begin Label Label2
BackColor = &H00C0C0C0&
Caption = "MIDI Out Device"
Height = 255
Left = 150
TabIndex = 2
Top = 180
Width = 2025
End
End
Sub CmdCancel_Click ()
Unload MIDISetupForm
End Sub
Sub CmdOk_Click ()
MIDISetupForm.Hide
End Sub
Sub Form_Load ()
' Center the form on the screen
Move (Screen.Width - Width) \ 2, (Screen.Height - Height) \ 2
'
' Fill output device combo box
'
For I = -1 To MIDIOutput1.DeviceCount - 1
MIDIOutput1.DeviceID = I
ComboMidiOut.AddItem MIDIOutput1.ProductName
Next
'
' Select first in list
'
ComboMidiOut.ListIndex = 0
MIDIOutput1.DeviceID = -1
End Sub