Home All Groups Group Topic Archive Search About

Is there a method to determine if the mouse position is inside the bounds of a treeview node?

Author
9 Feb 2006 4:20 PM
**Developer**
I need to know when the mouse is over the text of a TreeView node.

I know how to get the Bounds of the node which appear to be the correct
values to delineate the text.

I could check the mouse position against those values but I'm guessing there
is a method to determine if the position is inside the bounds.

If that is correct I appreciate a reference to the method so I can find it
in the docs.


Thanks

Author
9 Feb 2006 8:51 PM
**Developer**
I found "Contains" on Rectangle


Show quoteHide quote
" **Developer**" <REMOVEdevelo***@a-znet.com> wrote in message
news:%23k4pwSZLGHA.2992@tk2msftngp13.phx.gbl...
>I need to know when the mouse is over the text of a TreeView node.
>
> I know how to get the Bounds of the node which appear to be the correct
> values to delineate the text.
>
> I could check the mouse position against those values but I'm guessing
> there is a method to determine if the position is inside the bounds.
>
> If that is correct I appreciate a reference to the method so I can find it
> in the docs.
>
>
> Thanks
>
Author
14 Feb 2006 3:47 PM
Phill W.
" **Developer**" <REMOVEdevelo***@a-znet.com> wrote in message
news:%23k4pwSZLGHA.2992@tk2msftngp13.phx.gbl...
> I need to know when the mouse is over the text of a TreeView node.

How about

[TreeView].GetNodeAt( X, Y )

??

HTH,
    Phill  W.
Author
14 Feb 2006 5:44 PM
academic
Thanks


Show quoteHide quote
"Phill W." <p-.a-.w-a-r-d@o-p-e-n.a-c.u-k> wrote in message
news:dssu08$epc$1@yarrow.open.ac.uk...
>" **Developer**" <REMOVEdevelo***@a-znet.com> wrote in message
>news:%23k4pwSZLGHA.2992@tk2msftngp13.phx.gbl...
>> I need to know when the mouse is over the text of a TreeView node.
>
> How about
>
> [TreeView].GetNodeAt( X, Y )
>
> ??
>
> HTH,
>    Phill  W.
>
>