468,469 Members | 2,349 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,469 developers. It's quick & easy.

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

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
Feb 9 '06 #1
3 2454
I found "Contains" on Rectangle
" **Developer**" <RE*************@a-znet.com> wrote in message
news:%2****************@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

Feb 9 '06 #2
" **Developer**" <RE*************@a-znet.com> wrote in message
news:%2****************@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.
Feb 14 '06 #3
Thanks
"Phill W." <p-***********@o-p-e-n.a-c.u-k> wrote in message
news:ds**********@yarrow.open.ac.uk...
" **Developer**" <RE*************@a-znet.com> wrote in message
news:%2****************@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.

Feb 14 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by timtos | last post: by
1 post views Thread by R.A.F. | last post: by
reply views Thread by NPC403 | last post: by
1 post views Thread by kmladenovski | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.