|
-
Apr 3rd, 2019, 06:01 AM
#14
Re: Listview Height
 Originally Posted by AlexanderBB
I'm still trying to figure it all out. I think now you're right except I didn't expect a scroll bar.
So, to better describe the scenario. When the LV has exactly 8 items (or whatever number the LV is sized to), you don't want the scrollbar? Understandable.
Since that wasn't explained, my routine in post #9 is not guaranteed to do that. Why? Well, the LV is probably using a pixel around the header (2 total), then another between each listitem (7 more). That equates to 9 pixels or 135 twips. The 135 twips can be hardcoded but only if it behaves that way every time, regardless of font, DPI, etc. Otherwise, more calculations are needed in order to discover those offsets.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|