Article View: borland.public.cppbuilder.nativeapi
Article #3735Re: Sizing ListView Column when HScrollPos > 0
From: JD
Date: Sun, 30 Apr 2006 13:38
Date: Sun, 30 Apr 2006 13:38
29 lines
2188 bytes
2188 bytes
Bob Gonder <notbg@notmindspring.invalid> wrote: > >>If the mouse it at 100 and moved to 99, after that one pixel >>move has been processed and the window is redrawn, the mouse >>is now at 98 even though it wasn't moved! > > Which would indicate that you are reading client (box) > coordinates at a time when you really want to know the real- > world (screen) coordinates. Using client relative v/s screen relative makes no difference because the difference between the old position and the new position is the same regardless of what variables are used to calculate it. Now, I do realize that in the above example, after the column is resized, if I were to look at the mouse position in screen relative terms, I wouldn't see that extra change but that's not the problem. I used that example to illustrate that the scroll position had changed which is the problem because it relocates the header on screen. I can get the desired sizing effect but it leaves the crHSplit mouse *way* out of position. At the moment, I'm freezing the mouse at the screen relative click point until the scroll position reaches zero and it works but I don't like it. ~ JD
Technical Details
Message-ID:
<4454bdd3$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newshub.sdsu.edu!logbridge.uoregon.edu!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<4453413e$1@newsgroups.borland.com> <3pt652pq4hdn1fn56cpgn1jkps35652csj@4ax.com> <44539d56$1@newsgroups.borland.com> <65k752po16q79kat37qnc6j7tn8a86sr9t@4ax.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: "JD" <nospam@nospam.com> Sender: "JD" <nospam@nospam.com> Reply-To: "JD" <nospam@nospam.com> Subject: Re: Sizing ListView Column when HScrollPos > 0 Newsgroups: borland.public.cppbuilder.nativeapi X-User-Info: 152.163.100.201 X-Forwarded-For: 172.146.230.162 References: <4453413e$1@newsgroups.borland.com> <3pt652pq4hdn1fn56cpgn1jkps35652csj@4ax.com> <44539d56$1@newsgroups.borland.com> <65k752po16q79kat37qnc6j7tn8a86sr9t@4ax.com> NNTP-Posting-Host: 207.105.83.66 Message-ID: <4454bdd3$1@newsgroups.borland.com> Date: 30 Apr 2006 06:38:27 -0700 X-Trace: newsgroups.borland.com 1146404307 207.105.83.66 (30 Apr 2006 06:38:27 -0700) Lines: 30 Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newshub.sdsu.edu!logbridge.uoregon.edu!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail