On Sun, Jan 13, 2013 at 2:52 AM, Staffan Tylen <staffan.ty...@gmail.com>wrote:

>
> At this point the current cursor position, p, in screen coordinates, has
>> been transformed to a point in client coordinates of the list-view.
>>
>> The key is determining if the point is in screen coordinates or client
>> coordinates and which window is going to be the client.
>>
>>
> Thanks Mark, this seems to work. At least I get the expected return value
> (6 when clicking on the 7th item). But info["SUBITEM"] always returns 0
> (where info is the directory passed to hitTestInfo). I would expect to see
> a different value if I click a column to the right of the leftmost, n'est
> pas?
>
>
Staffan,

>From the MSDN docs on hit testing:

Version 4.70. Receives the index of the matching subitem. When hit-testing
an item, this member will be zero.

So, that is to be expected.

But, the oddest thing is, when I just went to double check my facts, I
noticed there is a ListView_SubItemHitTest API.  This API does return the
subitem index.  Or is suppossed to, you never know with the MSDN docs until
you actually try them.

I had never noticed that before - I don't know why.  The list-view control
has more available APIs than any other control.  It is hard to take them
all in, would be my only excuse.

Might make a good RFE, hint, hint.

By the way, I have in-place editing for subitems working, and using a combo
box for a subitem.  I am pretty happy with the way they work.  I just need
to tidy up a few details and then I'll post on the list here with
information.

--
Mark Miesfeld
------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnmore_123012
_______________________________________________
Oorexx-users mailing list
Oorexx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-users

Reply via email to