Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Treeview hittest - bad parameters?
Message
From
25/07/2007 21:24:49
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP1
Miscellaneous
Thread ID:
01243640
Message ID:
01243662
Views:
29
>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.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform