Télécharger le zip
Tien, je suis passer trop to le zip n'est pas encore, je repasserai plus tard testé ça !!!
Lol ! Trop rapide mon gars !!!! ;)
une capture serait la bienvenue !
ok, pas de prob !P.S : C'est koi ta photo ?????
Sltg trouvé le prob avec ton bug pour le btn Copier de la toolbar :en fait tu l'as nommé "paste" et tu as mis "past" dans le code.Voilà, @+ tex
Ah !!! Merci beaucoup !!!
'lutca fait plaisir d'avoir son nom dans les commentaires d'une sources...Petit defaut de la source, tu utilise l'objet printer pour lister les polices, Mais malheureusement ne possedant pas d'imprimantes parametrees, j'ai 1 zoli message d'erreur 482 : erreur d'impimanteSinon c'est une joli source :)
Ah, c'est vrai ke j'avais pas pensé a ce problème... Dans ce cas, connaitrais-tu un autre moyen de lister les polices windows ???
Directement pompé de l'Api-GUIDE'In a modulePublic Const NTM_REGULAR = &H40&Public Const NTM_BOLD = &H20&Public Const NTM_ITALIC = &H1&Public Const TMPF_FIXED_PITCH = &H1Public Const TMPF_VECTOR = &H2Public Const TMPF_DEVICE = &H8Public Const TMPF_TRUETYPE = &H4Public Const ELF_VERSION = 0Public Const ELF_CULTURE_LATIN = 0Public Const RASTER_FONTTYPE = &H1Public Const DEVICE_FONTTYPE = &H2Public Const TRUETYPE_FONTTYPE = &H4Public Const LF_FACESIZE = 32Public Const LF_FULLFACESIZE = 64Type LOGFONT lfHeight As Long lfWidth As Long lfEscapement As Long lfOrientation As Long lfWeight As Long lfItalic As Byte lfUnderline As Byte lfStrikeOut As Byte lfCharSet As Byte lfOutPrecision As Byte lfClipPrecision As Byte lfQuality As Byte lfPitchAndFamily As Byte lfFaceName(LF_FACESIZE) As ByteEnd TypeType NEWTEXTMETRIC tmHeight As Long tmAscent As Long tmDescent As Long tmInternalLeading As Long tmExternalLeading As Long tmAveCharWidth As Long tmMaxCharWidth As Long tmWeight As Long tmOverhang As Long tmDigitizedAspectX As Long tmDigitizedAspectY As Long tmFirstChar As Byte tmLastChar As Byte tmDefaultChar As Byte tmBreakChar As Byte tmItalic As Byte tmUnderlined As Byte tmStruckOut As Byte tmPitchAndFamily As Byte tmCharSet As Byte ntmFlags As Long ntmSizeEM As Long ntmCellHeight As Long ntmAveWidth As LongEnd TypeDeclare Function EnumFontFamiliesEx Lib "gdi32" Alias "EnumFontFamiliesExA" (ByVal hdc As Long, lpLogFont As LOGFONT, ByVal lpEnumFontProc As Long, ByVal LParam As Long, ByVal dw As Long) As LongFunction EnumFontFamProc(lpNLF As LOGFONT, lpNTM As NEWTEXTMETRIC, ByVal FontType As Long, LParam As Long) As Long Dim FaceName As String 'convert the returned string to Unicode FaceName = StrConv(lpNLF.lfFaceName, vbUnicode) 'print the form on Form1 Form1.Print Left$(FaceName, InStr(FaceName, vbNullChar) - 1) 'continue enumeration EnumFontFamProc = 1End Function'In a formPrivate Sub Form_Load() 'KPD-Team 2000 'URL: http://www.allapi.net/ 'E-Mail: KPDTeam@Allapi.net Dim LF As LOGFONT 'set graphics mode to persistent Me.AutoRedraw = True 'enumerates the fonts EnumFontFamiliesEx Me.hdc, LF, AddressOf EnumFontFamProc, ByVal 0&, 0End Sub
au pire utilise une fonction call
Se souvenir du profil
Mot de passe oublié ? / Activation de compteCréer un compte
1 874 758 membres 319 nouveaux aujourd'hui 16 152 membres club