By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,582 Members | 1,720 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,582 IT Pros & Developers. It's quick & easy.

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

P: n/a
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
Share this Question
Share on Google+
3 Replies


P: n/a
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

P: n/a
" **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

P: n/a
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.