"Tap and hold" does not generate a MouseDown event for a Control

J

Jon Pawley

Hi guys.


Back in July, Katie Schaeffer wrote the following:


| From: (e-mail address removed) (Katie Schaeffer [MSFT])
| Organization: Microsoft
| Date: Thu, 12 Jun 2003 23:09:12 GMT
| Subject: RE: .NETCF ContextMenu -- The mouse coordinates?
|
|
| Hello Mark,
|
| You are correct that the tap-and-hold which brings up the context menu
| doesn't generate a MouseDown event. You may be able to use
| Control.MousePosition in the ContextMenu.Popup event to identify the
| current position of the mouse.
|
| -Katie
|
| --------------------
| | From: "Mark McKnight" <[email protected]>
| | Subject: .NETCF ContextMenu -- The mouse coordinates?
| | Date: Tue, 10 Jun 2003 16:20:16 -0500
| |
| | I assigned a ContextMenu to a custom-control I wrote and it works --
the
| | menu displays after the red dots appear, but how do I know what the
mouse
| | coordinates are when the this happens?
| |
| | I don't seem to be getting a MouseDown event. I tried many things,
but
| | no luck. Thanks!
| |


It seems absurd to me that the "tap and hold" doesn't fire the MouseDown
event, when in non-.NETCF environments there is obviously an event that is
caught (have a look at Pocket Outlook, for example. That seems to receive a
mouse down event even before the "red dots" start appearing--something which
is not possible in .NETCF.)

Thankfully, I found Katie's suggestion (using the ContextMenu.Popup event)
and hence worked out a reasonable way of getting what I wanted (the item
within a customised control that the user was tapping on). I am slightly
worried that people then followed up Katies suggestion with reports that the
Control.MousePosition returned incorrect coordinates, but I don't seem to
have much choice, I'll just have to press on with what I have got.

(So, that's a slightly roundabout way of saying thank you to Katie, while
still being slight put out that I've spent a good 8 hours trying to sort out
something fairly simple... ;)


Does anyone know of a fairly comprehensive description of the sequence of
events that get fired (and are consumed and/or exposed by various controls)
in various scenarios? On MSDN? I'm hoping that something like the following
exists:
Example:
--------
Scenario: user taps and holds on a Control object
Sequence of events:
1) Blah
2) Blah
3) MouseDown
4) Blah
...


Maybe there is a case for writing some definitive documentation on this
area.

Cheers,

Jon
 
K

Katie Schaeffer [MSFT]

Hi Jon,

Just wanted to followup with you. So using the popup event remains the
best way to do this for v1. We've also fixed the issues around
Control.MousePosition that were reported.

I think what would be ideal is to have a seperate event for the 'tap &
hold' action, so you could distinguish between that and a regular mouse
down. Unfortunately it's difficult to expose such an event because we're
tied to the desktop object model...so right now the menu popup event is
probably the best thing we've got going. And once again, sorry this was so
difficult to discover...I'll see if I can get this issue added to our faq
if it's not already there.

Thanks,
-Katie

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

***.Net Compact Framework Info***
Faq:
http://msdn.microsoft.com/mobility/prodtechinfo/devtools/netcf/FAQ/default.a
spx
QuickStarts: http://samples.gotdotnet.com/quickstart/CompactFramework/
Samples:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetcomp/h
tml/CompactfxTechArt.asp

--------------------
| NNTP-Posting-Date: Wed, 10 Dec 2003 19:13:40 -0600
| From: "Jon Pawley" <[email protected]>
| Newsgroups: microsoft.public.dotnet.framework.compactframework
| Subject: "Tap and hold" does not generate a MouseDown event for a Control
| Date: Thu, 11 Dec 2003 14:13:00 +1300
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| X-Original-NNTP-Posting-Host: a003-m001-u65.acld.clear.net.nz
| Message-ID: <[email protected]>
| X-Original-Trace: 11 Dec 2003 14:14:17 +1300,
a003-m001-u65.acld.clear.net.nz
| Organization: CLEAR Net New Zealand http://www.clear.net.nz - Complaints
(e-mail address removed)
| Lines: 82
| NNTP-Posting-Host: 203.97.37.6
| X-Trace:
sv3-L02sOAJnVzxPhyDBRsGyPxga/PMJYow/Xp07kd/jKT7kKL2pck0FN3D1hJZ0P1kShCqW6dGF
oan8DlP!6EhqhlgdZzpL8q4tc3QDuns5HSL0w2+RnAP74Mtsw7oxh9kPq54f2AT0eg==
| X-Complaints-To: Complaints to (e-mail address removed)
| X-DMCA-Complaints-To: Complaints to (e-mail address removed)
| X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
| X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your
complaint properly
| X-Postfilter: 1.1
| Path:
cpmsftngxa07.phx.gbl!cpmsftngxa10.phx.gbl!TK2MSFTNGXA06.phx.gbl!TK2MSFTNGXA0
5.phx.gbl!TK2MSFTNGP08.phx.gbl!newsfeed00.sul.t-online.de!t-online.de!npeer.
de.kpn-eurorings.net!newsfeed.news2me.com!arclight.uoregon.edu!wn13feed!worl
dnet.att.net!216.166.71.14!border3.nntp.aus1.giganews.com!intern1.nntp.aus1.
giganews.com!nntp.giganews.com!nntp.clear.net.nz!news.clear.net.nz.POSTED!no
t-for-mail
| Xref: cpmsftngxa07.phx.gbl
microsoft.public.dotnet.framework.compactframework:40569
| X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework
|
|
| Hi guys.
|
|
| Back in July, Katie Schaeffer wrote the following:
|
|
| | From: (e-mail address removed) (Katie Schaeffer [MSFT])
| | Organization: Microsoft
| | Date: Thu, 12 Jun 2003 23:09:12 GMT
| | Subject: RE: .NETCF ContextMenu -- The mouse coordinates?
| |
| |
| | Hello Mark,
| |
| | You are correct that the tap-and-hold which brings up the context menu
| | doesn't generate a MouseDown event. You may be able to use
| | Control.MousePosition in the ContextMenu.Popup event to identify the
| | current position of the mouse.
| |
| | -Katie
| |
| | --------------------
| | | From: "Mark McKnight" <[email protected]>
| | | Subject: .NETCF ContextMenu -- The mouse coordinates?
| | | Date: Tue, 10 Jun 2003 16:20:16 -0500
| | |
| | | I assigned a ContextMenu to a custom-control I wrote and it works
--
| the
| | | menu displays after the red dots appear, but how do I know what the
| mouse
| | | coordinates are when the this happens?
| | |
| | | I don't seem to be getting a MouseDown event. I tried many
things,
| but
| | | no luck. Thanks!
| | |
|
|
| It seems absurd to me that the "tap and hold" doesn't fire the MouseDown
| event, when in non-.NETCF environments there is obviously an event that is
| caught (have a look at Pocket Outlook, for example. That seems to receive
a
| mouse down event even before the "red dots" start appearing--something
which
| is not possible in .NETCF.)
|
| Thankfully, I found Katie's suggestion (using the ContextMenu.Popup event)
| and hence worked out a reasonable way of getting what I wanted (the item
| within a customised control that the user was tapping on). I am slightly
| worried that people then followed up Katies suggestion with reports that
the
| Control.MousePosition returned incorrect coordinates, but I don't seem to
| have much choice, I'll just have to press on with what I have got.
|
| (So, that's a slightly roundabout way of saying thank you to Katie, while
| still being slight put out that I've spent a good 8 hours trying to sort
out
| something fairly simple... ;)
|
|
| Does anyone know of a fairly comprehensive description of the sequence of
| events that get fired (and are consumed and/or exposed by various
controls)
| in various scenarios? On MSDN? I'm hoping that something like the
following
| exists:
|
| > Example:
| > --------
| > Scenario: user taps and holds on a Control object
| > Sequence of events:
| > 1) Blah
| > 2) Blah
| > 3) MouseDown
| > 4) Blah
| > ...
|
|
| Maybe there is a case for writing some definitive documentation on this
| area.
|
| Cheers,
|
| Jon
|
|
|
|
 
J

Jon Pawley

Dear Katie,

Thank you for you message, I appreciate your time.

I would love to have a seperate event associated with the "Tap And Hold"
action, I think that would be a great idea. I can kind of understand the
desire to keep the .NETCF as similar to the .NET (Full) Framework, but I
think that there needs to be compromise that could give the PPC developers
(and WinCE .NET developers...?) what they need, in terms of the specialised,
non-desktop object model, and compatibility with the full framework.

One thought I had was why not map the desktop's right mouse click event to
the PPC's "Tap And Hold" action? On PPC (and perhaps on WinCE.NET devices?)
there is no right mouse button, and you could argue that "Tap And Hold" is
the equivalent to Right Mouse Click--they both bring up a context menu...

Cheers again for your time,

Jon




Katie Schaeffer said:
Hi Jon,

Just wanted to followup with you. So using the popup event remains the
best way to do this for v1. We've also fixed the issues around
Control.MousePosition that were reported.

I think what would be ideal is to have a seperate event for the 'tap &
hold' action, so you could distinguish between that and a regular mouse
down. Unfortunately it's difficult to expose such an event because we're
tied to the desktop object model...so right now the menu popup event is
probably the best thing we've got going. And once again, sorry this was so
difficult to discover...I'll see if I can get this issue added to our faq
if it's not already there.

Thanks,
-Katie

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

***.Net Compact Framework Info***
Faq:
http://msdn.microsoft.com/mobility/prodtechinfo/devtools/netcf/FAQ/default.a
spx
QuickStarts: http://samples.gotdotnet.com/quickstart/CompactFramework/
Samples:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetcomp/h
tml/CompactfxTechArt.asp

--------------------
| NNTP-Posting-Date: Wed, 10 Dec 2003 19:13:40 -0600
| From: "Jon Pawley" <[email protected]>
| Newsgroups: microsoft.public.dotnet.framework.compactframework
| Subject: "Tap and hold" does not generate a MouseDown event for a Control
| Date: Thu, 11 Dec 2003 14:13:00 +1300
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| X-Original-NNTP-Posting-Host: a003-m001-u65.acld.clear.net.nz
| Message-ID: <[email protected]>
| X-Original-Trace: 11 Dec 2003 14:14:17 +1300,
a003-m001-u65.acld.clear.net.nz
| Organization: CLEAR Net New Zealand http://www.clear.net.nz - Complaints
(e-mail address removed)
| Lines: 82
| NNTP-Posting-Host: 203.97.37.6
| X-Trace:
sv3-L02sOAJnVzxPhyDBRsGyPxga/PMJYow/Xp07kd/jKT7kKL2pck0FN3D1hJZ0P1kShCqW6dGF
oan8DlP!6EhqhlgdZzpL8q4tc3QDuns5HSL0w2+RnAP74Mtsw7oxh9kPq54f2AT0eg==
| X-Complaints-To: Complaints to (e-mail address removed)
| X-DMCA-Complaints-To: Complaints to (e-mail address removed)
| X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
| X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your
complaint properly
| X-Postfilter: 1.1
| Path:
cpmsftngxa07.phx.gbl!cpmsftngxa10.phx.gbl!TK2MSFTNGXA06.phx.gbl!TK2MSFTNGXA05.phx.gbl!TK2MSFTNGP08.phx.gbl!newsfeed00.sul.t-online.de!t-online.de!npeer.de.kpn-eurorings.net!newsfeed.news2me.com!arclight.uoregon.edu!wn13feed!worldnet.att.net!216.166.71.14!border3.nntp.aus1.giganews.com!intern1.nntp.aus1.giganews.com!nntp.giganews.com!nntp.clear.net.nz!news.clear.net.nz.POSTED!no
t-for-mail
| Xref: cpmsftngxa07.phx.gbl
microsoft.public.dotnet.framework.compactframework:40569
| X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework
|
|
| Hi guys.
|
|
| Back in July, Katie Schaeffer wrote the following:
|
|
| | From: (e-mail address removed) (Katie Schaeffer [MSFT])
| | Organization: Microsoft
| | Date: Thu, 12 Jun 2003 23:09:12 GMT
| | Subject: RE: .NETCF ContextMenu -- The mouse coordinates?
| |
| |
| | Hello Mark,
| |
| | You are correct that the tap-and-hold which brings up the context menu
| | doesn't generate a MouseDown event. You may be able to use
| | Control.MousePosition in the ContextMenu.Popup event to identify the
| | current position of the mouse.
| |
| | -Katie
| |
| | --------------------
| | | From: "Mark McKnight" <[email protected]>
| | | Subject: .NETCF ContextMenu -- The mouse coordinates?
| | | Date: Tue, 10 Jun 2003 16:20:16 -0500
| | |
| | | I assigned a ContextMenu to a custom-control I wrote and it works
--
| the
| | | menu displays after the red dots appear, but how do I know what the
| mouse
| | | coordinates are when the this happens?
| | |
| | | I don't seem to be getting a MouseDown event. I tried many
things,
| but
| | | no luck. Thanks!
| | |
|
|
| It seems absurd to me that the "tap and hold" doesn't fire the MouseDown
| event, when in non-.NETCF environments there is obviously an event that is
| caught (have a look at Pocket Outlook, for example. That seems to receive
a
| mouse down event even before the "red dots" start appearing--something
which
| is not possible in .NETCF.)
|
| Thankfully, I found Katie's suggestion (using the ContextMenu.Popup event)
| and hence worked out a reasonable way of getting what I wanted (the item
| within a customised control that the user was tapping on). I am slightly
| worried that people then followed up Katies suggestion with reports that
the
| Control.MousePosition returned incorrect coordinates, but I don't seem to
| have much choice, I'll just have to press on with what I have got.
|
| (So, that's a slightly roundabout way of saying thank you to Katie, while
| still being slight put out that I've spent a good 8 hours trying to sort
out
| something fairly simple... ;)
|
|
| Does anyone know of a fairly comprehensive description of the sequence of
| events that get fired (and are consumed and/or exposed by various
controls)
| in various scenarios? On MSDN? I'm hoping that something like the
following
| exists:
|
| > Example:
| > --------
| > Scenario: user taps and holds on a Control object
| > Sequence of events:
| > 1) Blah
| > 2) Blah
| > 3) MouseDown
| > 4) Blah
| > ...
|
|
| Maybe there is a case for writing some definitive documentation on this
| area.
|
| Cheers,
|
| Jon
|
|
|
|
 

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