Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Height of a row in a List Box
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00259391
Message ID:
00259586
Views:
18
>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...
>
Hi Lucy,

Why not just set the IntegralHeight property to .T.? I suspect that you're trying to prevent a partially shown item, setting this property to .T. will do that for you.
George

Ubi caritas et amor, deus ibi est
Previous
Reply
Map
View

Click here to load this message in the networking platform