home *** CD-ROM | disk | FTP | other *** search
Wrap
VERSION 2.00 Begin Form Form1 Caption = "Form1" ClientHeight = 1740 ClientLeft = 1380 ClientTop = 1608 ClientWidth = 6036 Height = 2160 Left = 1332 LinkTopic = "Form1" ScaleHeight = 1740 ScaleWidth = 6036 Top = 1236 Width = 6132 Begin PictureBox Picture1 BackColor = &H00C0C0C0& Height = 204 Left = 96 ScaleHeight = 180 ScaleWidth = 5604 TabIndex = 1 Top = 96 Width = 5628 End Begin MListBox MList1 Alignment = 0 'None AllowFocusRect = -1 'True BorderStyle = 0 'Normal CheckColor = &H00000000& CheckStyle = 0 'Cross Style DrawRegions = 5 EnableVirtualMsgs= 0 'False ExtendedSelect = 0 'False FallColor = &H00808080& FindDirection = 0 'Forward GridColor = &H00000000& GridStyle = 0 'Solid Height = 1176 HiliteBackColor = &H00000000& HiliteForeColor = &H00000000& HorizontalGrids = 0 'False ImageRegion = 0 ImageType = 0 'None ItemHeight = 195 ItemWidth = 1560 Left = 96 MaskingColor = &H00FFFFFF& MultiColumn = 0 'False MultiSelect = 0 'False NoIntegralHeight= 0 'False OwnerDraw = 0 'False RiseColor = &H00FFFFFF& SelectMode = 0 'Normal SortColumn = 0 Sorted = 0 'False StringCompare = 0 'Case Sensitive TabIndex = 0 Top = 336 Version = "04.20" VerticalGrids = 0 'False VirtualMsgZone = 0 Width = 5628 End Dim scrOffset As Long Const MM_TWIPS = 6 Declare Function TextOut Lib "GDI" (ByVal hDC As Integer, ByVal X As Integer, ByVal Y As Integer, ByVal lpString As String, ByVal nCount As Integer) As Integer Declare Function SetMapMode Lib "GDI" (ByVal hDC As Integer, ByVal nMapMode As Integer) As Integer Sub Form_Load () MList1.ItemLength(1) = 2000 MList1.ItemLength(2) = 2000 MList1.ItemLength(3) = 2000 MList1.ItemLength(4) = 2000 MList1.ItemLength(5) = 2000 MList1.SetHzScroll = 1 For I = 0 To 15 MList1.AddItem Str$(I) + Chr$(9) + "Value:" + Str$(I) + Chr$(9) + "Information " + Str$(I) + Chr$(9) + "Next To Last" + Chr$(9) + "Last" Next I End Sub Sub MList1_DrawItem (ListIndex As Integer, ItemAction As Integer, ItemState As Integer, ItemDC As Integer, ItemLeft As Integer, ItemTop As Integer, ItmeRight As Integer, ItemBottom As Integer, ItemText As String) retval = TextOut(ItemDC, ItemLeft, ItemTop, ItemText, Len(ItemText)) End Sub Sub MList1_ScrollMessage (Offset As Integer) scrOffset = Offset Debug.Print "Scroll offset:" + Str$(scrOffset) Picture1.Refresh End Sub Sub Picture1_Paint () Dim retval As Integer, Y As Integer Y = 0 For I = 1 To 5 retval = TextOut(Picture1.hDC, -scrOffset + Y, 0, "Column" + Str$(I), 8) Y = Y + 165 + I Mod 2 Next I End Sub