2014-07-01 12:01 UTC
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 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?