Group:  Microsoft Access ยป microsoft.public.access.activexcontrol
Thread: How to detect click in "empty" part of treeview?

DotNetBag
.NET Development Newsgroups

HTVi
TV Discussion Newsgroups

Our Hot Pick: Rising Antivirus 2006 - Certified by TUV & Checkmark! Get 10% discount by entering this coupon code: ONDISCOUNT10
Rising Antivirus 2006

How to detect click in "empty" part of treeview?
kiln <kiln[ at ]brick-like.com> 31.10.2005 07:02:10
I'd like to be able to detect if a user has right-clicked a treeview
control in the blank area of the tree (if there is one). The way tv
seems to work is that if a node is already selected, and one left or
right clicks in the area that has no nodes, tv still regards the
selected node as the 'hot' node. I'd like to know if the user has
clicked outside of the area that has nodes drawn.

Thanks
Re: How to detect click in "empty" part of treeview?
"Alex Dybenko" <alexdyb[ at ]PLEASE.cemi.NO.rssi.SPAM.ru> 31.10.2005 07:51:58
Hi,
if some node is selected - then it will remain selected util you unselect
it, or select other. Just a right-click does not pergorm any of these
operations. Perhaps you can try to use HitTest method.

--
Alex Dybenko (MVP)
http://alexdyb.blogspot.com
http://www.PointLtd.com


"kiln" <kiln[ at ]brick-like.com> wrote in message
news:MPG.1dcf6149b7f29dea989977[ at ]msnews.microsoft.com...
[Quoted Text]
> I'd like to be able to detect if a user has right-clicked a treeview
> control in the blank area of the tree (if there is one). The way tv
> seems to work is that if a node is already selected, and one left or
> right clicks in the area that has no nodes, tv still regards the
> selected node as the 'hot' node. I'd like to know if the user has
> clicked outside of the area that has nodes drawn.
>
> Thanks


Re: How to detect click in "empty" part of treeview?
kiln <kiln[ at ]brick-like.com> 01.11.2005 03:21:39
In article <OlyNQAf3FHA.2364[ at ]TK2MSFTNGP12.phx.gbl>,
alexdyb[ at ]PLEASE.cemi.NO.rssi.SPAM.ru says...
[Quoted Text]
> Hi,
> if some node is selected - then it will remain selected util you unselect
> it, or select other. Just a right-click does not pergorm any of these
> operations. Perhaps you can try to use HitTest method.
>
>
HitTest is perfect, thanks Alex!

Home | Search | Terms | Imprint | Contact
Newsgroups Reader - provided by WiredBox.Net