1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
| Declare Function CreateFont Lib "gdi32" Alias "CreateFontA" (ByVal Height As Long, _
ByVal Width As Long, _
ByVal Orientation As Long, _
ByVal Escapement As Long, _
ByVal fontwidth As Long, _
ByVal Italic As Long, _
ByVal Unerline As Long, _
ByVal StrikeOut As Long, _
ByVal CharSet As Long, _
ByVal OutputPrecision As Long, _
ByVal ClipPrecision As Long, _
ByVal quality As Long, _
ByVal PitchAndFamily As Long, _
ByVal FontName As String) As Long
Dans des ComboBox on peut choisir: Font, Height et Width
Dans les CheckBox on peut aussi choisir les propriétés Bold, Italic, Underline et Strike
'choix de la Fonte: ComboBox, Name cboFonts
For i = 0 To Printer.FontCount - 1
cboFonts.AddItem Printer.Fonts(i)
Next i
'choix de la taille Height et Width: ComboBox, Name cboHeight et cboWidth
For i = 5 To 150
cboHeight.AddItem i
cboWidth.AddItem i
Next i |
Partager