On Sun, Jan 13, 2013 at 9:26 AM, Staffan Tylen <staffan.ty...@gmail.com>wrote:
>
>
>> It's not too hard to understand, the API being used does not know what
>> you are thinking. ;-) The API does not fill in the subitem indexes and
>> the documentation for the API explicitly states the subitem field will be 0.
>>
>>
> OK, so in fact the listview info["SUBITEM"] directory entry shouldn't have
> been there in the first place I guess. The doc for it says:
>
> *The subitem index if the point hits a subitem, otherwise 0.*
>
Well, no one's perfect. ;-)
The operating system returns information on the hit test in a struct. In
ooDialog, I translate the values in the struct to values Rexx can use and
return the values in the .Directory object.
The documentation for the struct is in one place in MSDN, which is what I
needed to do the coding. And what I used to write up the ooDialog doc.
The documentation for the struct, says exactly that. That the iSubitem
field is the subitem index if the point hits a subitem. There is no
mention that in certain uses of the struct it will be 0, even if the point
does hit a subitem.
The information I quoted earlier is in a completely different place in the
MSDN docs, and I simply had not noticed it before. ;-(
--
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