home *** CD-ROM | disk | FTP | other *** search
- VERSION 4.00
- Begin VB.Form frmOwnDraw
- BorderStyle = 0 'None
- ClientHeight = 5835
- ClientLeft = 2910
- ClientTop = 3555
- ClientWidth = 7830
- ControlBox = 0 'False
- Height = 6240
- Left = 2850
- LinkTopic = "Form1"
- MaxButton = 0 'False
- MDIChild = -1 'True
- MinButton = 0 'False
- ScaleHeight = 5835
- ScaleWidth = 7830
- ShowInTaskbar = 0 'False
- Top = 3210
- Width = 7950
- Begin VB.PictureBox Picture4
- AutoSize = -1 'True
- Height = 405
- Left = 7290
- Picture = "Owndraw.frx":0000
- ScaleHeight = 345
- ScaleWidth = 330
- TabIndex = 5
- Top = 5100
- Visible = 0 'False
- Width = 390
- End
- Begin VB.PictureBox Picture3
- AutoSize = -1 'True
- Height = 405
- Left = 7260
- Picture = "Owndraw.frx":065E
- ScaleHeight = 23
- ScaleMode = 3 'Pixel
- ScaleWidth = 20
- TabIndex = 4
- Top = 4485
- Visible = 0 'False
- Width = 360
- End
- Begin VB.PictureBox Picture2
- AutoRedraw = -1 'True
- AutoSize = -1 'True
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "Arial"
- Size = 12
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 420
- Left = 7245
- Picture = "Owndraw.frx":0C04
- ScaleHeight = 360
- ScaleWidth = 360
- TabIndex = 3
- Top = 3870
- Visible = 0 'False
- Width = 420
- End
- Begin VB.PictureBox Picture1
- AutoRedraw = -1 'True
- AutoSize = -1 'True
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "MS Sans Serif"
- Size = 13.5
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 540
- Left = 3615
- Picture = "Owndraw.frx":0DA6
- ScaleHeight = 480
- ScaleWidth = 480
- TabIndex = 1
- Top = 360
- Width = 540
- End
- Begin VB.Label Label3
- Alignment = 2 'Center
- Caption = "Software"
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "MS Sans Serif"
- Size = 24
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 540
- Index = 1
- Left = 4335
- TabIndex = 8
- Top = 1845
- Width = 3105
- End
- Begin VB.Label Label3
- Alignment = 2 'Center
- Caption = "Mabry"
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "MS Sans Serif"
- Size = 24
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 540
- Index = 0
- Left = 4335
- TabIndex = 7
- Top = 1245
- Width = 3105
- End
- Begin VB.Label Label2
- Caption = $"Owndraw.frx":1028
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "MS Sans Serif"
- Size = 9.75
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 1005
- Left = 360
- TabIndex = 6
- Top = 4335
- Width = 6600
- WordWrap = -1 'True
- End
- Begin VB.Label Label1
- Caption = "COMpletely out of control!"
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "MS Sans Serif"
- Size = 13.5
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 465
- Left = 4245
- TabIndex = 2
- Top = 390
- Width = 3465
- End
- Begin MabryCtl.MList MList1
- Height = 3705
- Left = 360
- TabIndex = 0
- Top = 360
- Width = 3000
- _ExtentX = 5292
- _ExtentY = 6535
- BackColor = 16777215
- Caption = "Caption"
- CaptionAlignment= 2
- Object.TabStop = -1 'True
- ThreedShadowColor= -2147483627
- MousePointer = -842150451
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- BeginProperty Columns {23BAA6DE-05A6-11D1-9E15-0020AFD6A9D5}
- ColumnCount = 3
- BeginProperty Column0 {23BAA6E0-05A6-11D1-9E15-0020AFD6A9D5}
- Object.Width = 32
- MinWidth = 0
- MaxWidth = -1
- UserResizeEnabled= -1
- Heading = "Col 1"
- Object.Visible = -1
- ColumnAlignment = 2
- HeadingAlignment= 2
- EndProperty
- BeginProperty Column1 {23BAA6E0-05A6-11D1-9E15-0020AFD6A9D5}
- Object.Width = 110
- MinWidth = 0
- MaxWidth = -1
- UserResizeEnabled= -1
- Heading = "Col 2"
- Object.Visible = -1
- ColumnAlignment = 0
- HeadingAlignment= 0
- EndProperty
- BeginProperty Column2 {23BAA6E0-05A6-11D1-9E15-0020AFD6A9D5}
- Object.Width = 0
- MinWidth = 0
- MaxWidth = -1
- UserResizeEnabled= -1
- Heading = "Col 3"
- Object.Visible = -1
- ColumnAlignment = 0
- HeadingAlignment= 0
- EndProperty
- EndProperty
- End
- Attribute VB_Name = "frmOwnDraw"
- Attribute VB_Creatable = False
- Attribute VB_Exposed = False
- Option Explicit
- Private Sub Form_Load()
- Dim i As Integer
- Dim c As New CDraw
- ' Get some bitmaps over to the CDraw class so they
- ' can be used when drawing the list
- Set c.m_Picture1 = Picture1
- Set c.m_Picture2 = Picture2
- Set c.m_Picture3 = Picture3
- Set c.m_Picture4 = Picture4
- ' Assign the CDraw object to each column
- MList1.Columns(0).PaintObject = c
- MList1.Columns(1).PaintObject = c
- MList1.Columns(2).PaintObject = c
- ' We're going to draw the caption too!
- MList1.CaptionPaintObject = c
- ' The list must be populated with something. Since
- ' all the rows are ownerdrawn by CDraw anyway the contents
- ' of the list are irrelevant. But if the list was empty
- ' the control wouldn't know that anything needed to be
- ' drawn.
- For i = 1 To 25
- MList1.AddItem i
- Next
- End Sub
-