Posted 16 years ago
by BLANC Stéphane
-
Staubli Robotics Suite Product Manager,
STAUBLI
Version: 4.0.0274
Hi,
I'm having a problem using the HitTest method.
I call it in the mouseMove method and everything works fine except if the mouse cursor is under the last line of codeIn that case :
* l_htr IS NOT null
* l_htr.DisplayLineIndex = System.NullReferenceException
(like other methods...)
I don't understand what's happening and I don't know how to test it !!!
(to avoid a try..catch)
Any idea ?
Thanks for your help
Stéphane
I'm having a problem using the HitTest method.
I call it in the mouseMove method and everything works fine except if the mouse cursor is under the last line of code
protected override void OnMouseMove(System.Windows.Forms.MouseEventArgs x_e)
{
SyntaxEditorHitTestResult l_htr = HitTest(x_e.Location);
if (l_htr.DisplayLineIndex >= 0)
{
...
* l_htr IS NOT null
* l_htr.DisplayLineIndex = System.NullReferenceException
(like other methods...)
I don't understand what's happening and I don't know how to test it !!!
(to avoid a try..catch)
Any idea ?
Thanks for your help
Stéphane