Hi,
I was wondering if anyone knew of a "cast iron" way to precisely determine the required height of a ListView/ListBox item at runtime based upon the number of rows in the list.
I looked at the "FontSize" and "IconYSpacing" properties eg (setq Height (* (dcl-ListView-GetCount ListView)(dcl-Control-GetProperty ListView "IconYSpacing"))).
I could try to concoct an agorithm through trial and error, but I was wondering if there was a better way?
I think that will be rather difficult. You'll also need to account for screen resolution, themes, and user settings affecting the sizes of various parts of the controls.
Ok, thanks Owen. :(