Functionality of the old treeview _NodeClick event

J

Jon Gross

I am trying to detect when a user clicks a tree node. In
evb and vb6 we had a NodeClick event that gave an index....

I have seen posts that use the afterselect event. That
code has trouble when you want to click on the node that
is already selected.

I have seen posts in the dotnet.framework that use the
cursor position and the bounds of the node. But those
methose do not seem to be supported in the CF.

Is all I want to do is tell when a user clicks on tree
node. That has to be close to the most basic function of
the tree view.

Please reply with a code sample.

Thanks
 
J

Jon Gross

Let me try to re-phrase the question.

How do I detect that the user has 'tapped' on a already selected node.
 
R

Robert S. Unoki [MSFT]

Hi Jon;

Unfortunately, this is not possible with the compact framework. Mouse and
click notifications are not raised on the treeview control. This includes
the event properties and the protected methods that are availble for
override.

I have forwarded your post on as a request to our GUI feature team for
consideration in a future version.



This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
| From: (e-mail address removed) (Jon Gross)
| Newsgroups: microsoft.public.dotnet.framework.compactframework
| Subject: Re: Functionality of the old treeview _NodeClick event
| Date: 7 Aug 2003 15:17:16 -0700
| Organization: http://groups.google.com/
| Lines: 3
| Message-ID: <[email protected]>
| References: <[email protected]>
| NNTP-Posting-Host: 216.70.220.18
| Content-Type: text/plain; charset=ISO-8859-1
| Content-Transfer-Encoding: 8bit
| X-Trace: posting.google.com 1060294637 28636 127.0.0.1 (7 Aug 2003
22:17:17 GMT)
| X-Complaints-To: (e-mail address removed)
| NNTP-Posting-Date: 7 Aug 2003 22:17:17 GMT
| Path:
cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!newsfeed00.sul.t-online.de!t-onlin
e.de!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!sn-xit-03!sn-xit-01!sn-
xit-08!sn-xit-09!supernews.com!postnews1.google.com!not-for-mail
| Xref: cpmsftngxa06.phx.gbl
microsoft.public.dotnet.framework.compactframework:30436
| X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework
|
| Let me try to re-phrase the question.
|
| How do I detect that the user has 'tapped' on a already selected node.
|
 
J

Jon Gross

Thanks for your reply,

This is a pretty big problem for us.

Our user selects the node which takes them to the next screen. Then
they return to our screen with the treeview. At this point that node
is not selectable. In some cases that is the only node in the tree.

Do you have a workaround for us. As stated in the previous posts the
_NodeClick event functionality is really what we need here.

Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top