home *** CD-ROM | disk | FTP | other *** search
- VERSION 2.00
- Begin Form ListWindow
- Caption = "ListWindow"
- ClientHeight = 4935
- ClientLeft = 3375
- ClientTop = 885
- ClientWidth = 3300
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 5340
- Icon = LISTWIN.FRX:0000
- Left = 3315
- LinkTopic = "Form1"
- ScaleHeight = 329
- ScaleMode = 3 'Pixel
- ScaleWidth = 220
- Top = 540
- Width = 3420
- Begin VScrollBar vs
- Height = 2772
- LargeChange = 2
- Left = 3025
- Max = 2
- TabIndex = 1
- Top = 0
- Width = 264
- End
- Begin PictureBox pics
- AutoRedraw = -1 'True
- BackColor = &H00FFFFFF&
- BorderStyle = 0 'None
- Height = 480
- Left = 30
- ScaleHeight = 32
- ScaleMode = 3 'Pixel
- ScaleWidth = 307
- TabIndex = 0
- Top = 150
- Visible = 0 'False
- Width = 4609
- End
- Option Explicit
- DefInt A-Z
- Dim loading%
- 'structure holding the data for
- 'for this window's listbox
- Dim ld As LISTDATA
- 'this array holds the items in the list
- Dim items() As ITEMDATA
- Sub Form_DblClick ()
- Dim res%
- Dim item As ITEMDATA
- screen.MousePointer = 11
- res = launch(Me, items(ld.active))
- DoEvents
- screen.MousePointer = 0
- 'successful launch?
- If res = -1 Then
- Unload Me
- Show
- End If
- End Sub
- Sub Form_Load ()
- loading = -1
- InitList Me, ld
- caption = gItem.cap
- GetPMItems CStr(caption), ld, items()
- LoadIcons Me, ld, items()
- loading = 0
- End Sub
- Sub Form_MouseDown (Button As Integer, Shift As Integer, x As Single, y As Single)
- ItemClick Me, ld, items(), y
- End Sub
- Sub Form_Paint ()
- Debug.Print "Paint"
- If Not loading% Then
- Cls
- 'get system colors and redraw bitmaps if necessary
- SetColor
- If backcolor <> cdata.bkg Then
- LoadIcons Me, ld, items()
- backcolor = cdata.bkg
- End If
- forecolor = cdata.txt
- 'repaint client area
- PaintList Me, ld, items()
- End If
- End Sub
- Sub Form_Resize ()
- ResizeList Me, ld
- End Sub
- Sub Form_Unload (Cancel As Integer)
- Dim r%
- r = LoadListWindow(CStr(caption), Val(Tag))
- End Sub
- Sub vs_Change ()
- Dim n%
- n = (vs.Value)
- 'Debug.Print "toprow=" & n
- 'toprow range: 0=1st row,1=2nd, etc
- ld.toprow = n
- Form_Paint
- End Sub
-