Private Declare Function TextOut Lib "gdi32" Alias "TextOutW" (ByVal hDC As Long, ByVal X As Long, ByVal Y As Long, lpString As Any, ByVal nCount As Long) As Long
Private Sub Form_Load()
Show
picTable.Move 0, 0, 256 * 12, 256 * 12
Dim I&, X&, Y&
For Y = 0 To 255
For X = 0 To 255
TextOut picTable.hDC, X * 12, Y * 12, I, 2
I = I + 1
Next
Next
picTable.Refresh
SavePicture picTable.Image, "Font.bmp"
End Sub
Private Sub picTable_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
Static DrX!, DrY!
If Button And 1 Then
picTable.Move picTable.Left + X - DrX, picTable.Top + Y - DrY