Article View: borland.public.cppbuilder.nativeapi
Article #3723Re: Sizing ListView Column when HScrollPos > 0
From: Bob Gonder
Date: Sat, 29 Apr 2006 14:45
Date: Sat, 29 Apr 2006 14:45
32 lines
2487 bytes
2487 bytes
JD wrote: >What you should notice is that instead of the size decreasing >on a pixel per pixel basis as you move the mouse, the size is >decreased exponentially with every pixel move and I haven't >been able to find a solution to the problem. I'm not sure it's a bug, more like a "feature". What I observe is this. If you move a bar one pixel left, and hold the mouse still, the listbox continues to shrink at a steady (slow) pace until the sub-box (column) is minimized. As the box gets smaller, and is maxed to the right, the invisible left side moves right. This moves the sub-box one pixel right, but the mouse is still one pixel left of the bar, so it shrinks the box another pixel, which moves the box right one pixel....... If you continue to move the mouse left steady pace, one pixel per box draw, first, it's one pixel left, then box is one right, then mouse is 2 left, so box moves another 2, then mouse is 3 so box moves a further 3. So in screen terms, mouse is moving steady pace, but box is accelerating. I'd leave it alone, but if it really bothers you, I see 2 ways to go about fixing it. 1) limit mouse movement to 1 or 2 pixels (limits shrinking to one or two pixel speed) 2) reset mouse to bar. If mouse moves faster, box shrinks faster. If mouse stops, box stops. Both of these might be disconcerting as the mouse would appear to freeze. Third option would be to somehow remember last mouse position, and only reduce the box by the delta rather than the absolute.
Technical Details
Message-ID:
<3pt652pq4hdn1fn56cpgn1jkps35652csj@4ax.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news.glorb.com!newsfeed.cw.net!cw.net!news-FFM2.ecrc.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<4453413e$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,6756aa08d2757c32 X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: Bob Gonder <notbg@notmindspring.invalid> Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: Sizing ListView Column when HScrollPos > 0 Date: Sat, 29 Apr 2006 07:45:33 -0700 Organization: MindSpring Enterprises, Inc. Reply-To: notbg@notmindspring.invalid Message-ID: <3pt652pq4hdn1fn56cpgn1jkps35652csj@4ax.com> References: <4453413e$1@newsgroups.borland.com> X-Newsreader: Forte Agent 1.93/32.576 English (American) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 4.246.200.235 X-Trace: newsgroups.borland.com 1146321933 4.246.200.235 (29 Apr 2006 07:45:33 -0700) Lines: 35 Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news.glorb.com!newsfeed.cw.net!cw.net!news-FFM2.ecrc.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail