GFOwnerDraw/Testfrm.frm
VERSION 5.00
Begin VB.Form Form1
Caption = "Form1"
ClientHeight = 5295
ClientLeft = 60
ClientTop = 465
ClientWidth = 4635
LinkTopic = "Form1"
ScaleHeight = 5295
ScaleWidth = 4635
StartUpPosition = 3 'Windows‑Standard
Begin VB.ListBox List2
Height = 2085
ItemData = "Testfrm.frx":0000
Left = 60
List = "Testfrm.frx":0010
Style = 1 'Kontrollkästchen
TabIndex = 7
Top = 3000
Width = 4515
End
Begin VB.CommandButton Command4
Caption = "<‑"
Height = 255
Left = 360
TabIndex = 6
Top = 2640
Width = 375
End
Begin VB.CommandButton Command3
Caption = "<‑"
Height = 255
Left = 360
TabIndex = 5
Top = 2340
Width = 375
End
Begin VB.PictureBox Picture2
AutoSize = ‑1 'True
Height = 255
Left = 60
Picture = "Testfrm.frx":0030
ScaleHeight = 195
ScaleWidth = 195
TabIndex = 4
Top = 2640
Width = 255
End
Begin VB.CommandButton Command2
Caption = "Font #3"
Height = 555
Left = 2820
TabIndex = 3
Top = 2340
Width = 1695
End
Begin VB.CommandButton Command1
Caption = "Font #2"
Height = 555
Left = 960
TabIndex = 2
Top = 2340
Width = 1695
End
Begin VB.PictureBox Picture1
AutoSize = ‑1 'True
Height = 255
Left = 60
Picture = "Testfrm.frx":027A
ScaleHeight = 195
ScaleWidth = 195
TabIndex = 1
Top = 2340
Width = 255
End
Begin VB.ListBox List1
Height = 2085
Left = 60
Style = 1 'Kontrollkästchen
TabIndex = 0
Top = 60
Width = 4515
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
'(c)2002 by Louis.
Private Sub Form_Load()
'on error resume next
Dim Temp As Long
'preset
For Temp = 1 To Screen.FontCount
List1.AddItem Screen.Fonts(Temp)
Next Temp
'begin
Call GFOwnerDraw_ReceiveListBox(Form1.List1, "Form1.List1", Form1.Picture1)
End Sub
Private Sub Command1_Click()
'on error resume next
List1.Font.Name = "Fixedsys"
List1.Font.Size = 9
End Sub
Private Sub Command2_Click()
'on error resume next
List1.BackColor = RGB(0, 0, 0)
List1.ForeColor = RGB(100, 255, 100)
List1.Font.Name = "Times New Roman"
List1.Font.Size = 16
End Sub
Private Sub Command3_Click()
'on error resume next
Call GFOwnerDraw_ChangeIconPicture("Form1.List1", Picture1)
End Sub
Private Sub Command4_Click()
'on error resume next
Call GFOwnerDraw_ChangeIconPicture("Form1.List1", Picture2)
End Sub
Private Sub Form_Unload(Cancel As Integer)
'on error resume next
Call GFSubClass_Terminate
End Sub
[END OF FILE]