home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Begin VB.Form ListDrop
- Caption = "ListDrop"
- ClientHeight = 4230
- ClientLeft = 810
- ClientTop = 2040
- ClientWidth = 9810
- LinkTopic = "Form1"
- ScaleHeight = 4230
- ScaleWidth = 9810
- Begin VB.ListBox TAPEList
- Height = 1425
- Left = 5085
- TabIndex = 4
- Top = 2535
- Width = 4575
- End
- Begin VB.ListBox TEMPList
- Height = 1425
- Left = 5040
- TabIndex = 3
- Top = 465
- Width = 4635
- End
- Begin VB.FileListBox FileList
- Height = 3795
- Left = 2640
- TabIndex = 2
- Top = 195
- Width = 2295
- End
- Begin VB.DirListBox Dir1
- Height = 3465
- Left = 270
- TabIndex = 1
- Top = 570
- Width = 2220
- End
- Begin VB.DriveListBox Drive1
- Height = 315
- Left = 315
- TabIndex = 0
- Top = 180
- Width = 2190
- End
- Begin VB.Label DragLabel
- Height = 225
- Left = 8235
- TabIndex = 7
- Top = 90
- Width = 1455
- End
- Begin VB.Label Label2
- Caption = "Move to TAPE"
- Height = 345
- Left = 5055
- TabIndex = 6
- Top = 2250
- Width = 2040
- End
- Begin VB.Label Label1
- Caption = "Move to TEMP"
- Height = 300
- Left = 4995
- TabIndex = 5
- Top = 120
- Width = 2205
- End
- Attribute VB_Name = "ListDrop"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Option Explicit
- Private Sub FileList_DragDrop(Source As Control, X As Single, Y As Single)
- If ListDrop.ActiveControl.Name = "TEMPList" And TEMPList.ListIndex > -1 Then
- TEMPList.RemoveItem TEMPList.ListIndex
- ElseIf ListDrop.ActiveControl.Name = "TAPEList" And TAPEList.ListIndex > -1 Then
- TAPEList.RemoveItem TAPEList.ListIndex
- End If
- End Sub
- Private Sub FileList_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
- Dim DY As Integer
- DY = TextHeight("A") ' Height of item
- DragLabel.Move FileList.Left, _
- FileList.Top + Y - DY / 2, FileList.Width, DY
- DragLabel.Drag ' Drag label instead of item
- End Sub
- Private Sub Form_Load()
- DragLabel.Visible = 0 ' Make the label invisible.
- End Sub
- Private Sub Dir1_Change()
- FileList.Path = Dir1.Path
- End Sub
- Private Sub Drive1_Change()
- ChDrive Drive1.Drive
- Dir1.Path = Drive1.Drive
- End Sub
- Private Sub TAPEList_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
- Dim DY
- DY = TextHeight("A") ' Height of item
- DragLabel.Move TAPEList.Left, _
- TAPEList.Top + Y - DY / 2, TEMPList.Width, DY
- DragLabel.Drag ' Drag label instead of item
- End Sub
- Private Sub TEMPList_DragDrop(Source As Control, X As Single, Y As Single)
- If ListDrop.ActiveControl.Name = "FileList" Then TEMPList.AddItem Dir1.Path & "\" & FileList.FileName
- End Sub
- Private Sub Dir1_DragOver(Source As Control, X As Single, Y As Single, State As Integer)
- If State = 0 Then Source.MousePointer = 12
- If State = 1 Then Source.MousePointer = 0
- End Sub
- Private Sub Drive1_DragOver(Source As Control, X As Single, Y As Single, State As Integer)
- If State = 0 Then Source.MousePointer = 12
- If State = 1 Then Source.MousePointer = 0
- End Sub
- Private Sub TEMPList_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
- Dim DY As Integer
- DY = TextHeight("A") ' Height of item
- DragLabel.Move TEMPList.Left, _
- TEMPList.Top + Y - DY / 2, TEMPList.Width, DY
- DragLabel.Drag ' Drag label instead of item
- End Sub
- Private Sub TAPEList_DragDrop(Source As Control, X As Single, Y As Single)
- If ListDrop.ActiveControl.Name = "FileList" Then TAPEList.AddItem Dir1.Path & "\" & FileList.FileName
- End Sub
-