WinDev 14 How to know the pixel size of a character string
TexteLargeur The function allows to know the pixel size of a string.
However, this function admits a first parameter input field. Moreover
must pay attention to the font used.
If for example you create the next font:
polPolice is a Police
polPolice PoliceCrée = ("Tahoma", 7, iNormal, iNoir)
must then associate the police box:
SAI_Saisie1 .. Police = polPolice
Then:
NbPixel TexteLargeur = (SAI_Saisie1, "My string")
0 comments:
Post a Comment