Thanks,
Tom
--
Alex Feinman
---
Visit http://www.opennetcf.org
"Tom W" <t...@marketmatrix.com> wrote in message
news:ZCwhc.180708$K91.448413@attbi_s02...
For the benefit of the OP (or anybody with the same requirement), and as a
reminder for Microsoft may I add the following 2 comments:
1) Even after you show the context menu, if the user taps somewhere else and
loses the contextmenu, retapping on the node will not bring it up. This is
because AfterSelect does not fire for already selected nodes and I know of
no way to get the equivalent of NodeClick...
2) If as a result of a menuitem click (from the contextmenu shown) you wish
to show a form, then you will find the other form shown *behind* the main
one. The workaround is to use ShowDialog. Or instead of showing the
contextmenu direct, fire a thread and in its callback Invoke a method on the
gui thread to show the contextmenu.
Number 1 will apparently be rectified in CF 2.0 with
TreeView.NodeMouseClick. Alex I don't know if you have a workaround for this
(?)
Number 2 is a bug that I hope gets fixed in CF 2.0 More detail on it (inc.
repro steps and workaround) can be found here:
http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&q=TreeView.AfterSelect+ContextMenu.Show&meta=group%3Dmicrosoft.public.dotnet.framework.compactframework
Cheers
Daniel
"Alex Feinman [MVP]" <publi...@alexfeinman.com> wrote in message
news:eZYicpA...@TK2MSFTNGP10.phx.gbl...
The only workaround I can think of of the top of my head is to use
OpenNETCF.ApplicationEx class and catch WM_LBUTTONDOWN. Then, using the same
technique as I shown to to hittest, find the clicked item and if it is
already selected, fire an AfterSelect even manually.
--
Alex Feinman
Cheers
Daniel
"Alex Feinman [MVP]" <publi...@alexfeinman.com> wrote in message
news:OyDKifMK...@tk2msftngp13.phx.gbl...
The issue #2 is a bug in the .NET Compact Framework. Thank you very much
for reporting it.
Best regards,
Sergiy.
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
| From: "Daniel Moth" <dmo...@hotmail.com>
| References: <ZCwhc.180708$K91.448413@attbi_s02>
<eZYicpA...@TK2MSFTNGP10.phx.gbl>
| Subject: Re: TreeNode location and ContextMenu
| Date: Thu, 22 Apr 2004 23:44:54 +0100
| Lines: 59
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
| Message-ID: <eEyjVuLK...@TK2MSFTNGP11.phx.gbl>
| Newsgroups: microsoft.public.dotnet.framework.compactframework
| NNTP-Posting-Host: dsl-217-155-140-110.zen.co.uk 217.155.140.110
| Path:
cpmsftngxa10.phx.gbl!TK2MSFTFEED01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP11
.phx.gbl
| Xref: cpmsftngxa10.phx.gbl
microsoft.public.dotnet.framework.compactframework:51555
| X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework