Information générale
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Height of a row in a List Box
I'm trying to resize a list box, depending on the items that it has.
The problem here is that I need to know exactly the height of a row in the list box to be able to multiply it by the number of items and then get the height of the List Box.
There are some values that the function FONTMETRIC returns, but at least the ones that I'm using doesn't give me the exact height of a row in the pick list.
This is what I'm doing:
FONTMETRIC(1, FontName, FontSize) + FONTMETRIC(4, FontName, FontSize)
There are no Styles involved.
Does someone know if I'm missing something here?
Thanks in advance...
Lucy
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement