I said:
>But I can't figure out how to find out the height of an individual
>list item, except empirically. Does anyone have any ideas?

Steve Mann said:
>Divide the visible height (from the object bounds) by the # of visible items.

Sorry, I should have said in my first post: this is a nearly-form-sized list, always 
present on the form, that may or not have items in it at the time I resize it. The 
above is an excellent run-time solution for popup lists or other lists that can't be 
empty and can't be taller than the number of items. So thanks for that, I bet I can 
use it.

Ronnie van 't Westeinde said:
>Use FntLineHeight() to get the height of the current font.
>(Assuming you use text in the list)

Yep, I found out by examination that the line height of the font in the list structure 
matches the list item height. So I'm call LstGlueGetFont() to get the font from the 
list, setting it as the current font, then calling FntLineHeight() as you suggest. 
This seems to work fine.

Thanks!

Dave Johnson

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to