>Hi Dragan,
>
>I couldn't get HitTest to error out regardless what positive values I passed as parameters. Are you sure you don't have #DEFINE that overrides something in the code?
Went through all the .h files and couldn't find anything. They are mostly the regular .h files from third parties with long constant names - can't possibly imagine what could override a this.hittest().
At some point I did get three parameters offered for the .hittest when I started writing some test code in the event: x, y, ppnode (or something pp* anyway). It seems to have vanished when I recompiled the classlib, but... lemme see what gives if I get that version back.
[update] Now this is weird: if I suspend after the error, and try the same line in command window, Intellisense shows two methods: .HitTest and .hittest. Also, this.object.HitTest() requires three parameters, the third one being "ppNode as iNode @", but it actually accepts only two. A mismatch of headers with the actual control? But then another colleague who tested this with me gets the same error.
Also, it seems to be something about the values of x and y - in the loop that you know, it gets successfully to .hittest(277, 1590) and then gives this error on .hittest(278, 1590). The original click location (in twips) was 2070, 1590. I've also seen it choke on some other values while doing fine with others. Haven't been able to catch any rule to it so far.