|
|
|
start date: Wed, 25 Jul 2007 13:05:58 -0700,
posted on: microsoft.public.dotnet.framework.compactframework
back
| Thread Index |
|
1
Tim Frawley
|
|
2
Simon Hart
|
|
3
Tim Frawley
|
Tap & hold on grid doesn't fire mousedown
If I tap & hold on the grid the mousedown doesn't fire. The mouse
down will fire if I tap and hold and move the stylus.
I want Mousedown to fire when I tap and hold so that I can do hittest
for context menu popup.
Private Sub grdSpecies_MouseDown(ByVal sender As Object, _
ByVal e As System.Windows.Forms.MouseEventArgs) Handles
grdSpecies.MouseDown
Dim hitTest As DataGrid.HitTestInfo
grdSpecies = CType(sender, DataGrid)
hitTest = grdSpecies.HitTest(e.X, e.Y)
Select Case hitTest.Type
Case DataGrid.HitTestType.Cell
grdSpecies.Select(hitTest.Row)
End Select
End Sub
Date:Wed, 25 Jul 2007 13:05:58 -0700
Author:
|
RE: Tap & hold on grid doesn't fire mousedown
This is one of the annoying features of most of the grid type controls in the
CF and one of the reasons I use my own owner drawn grid for all my controls.
You want the same type of functionality as seen in Pocket Outlook.
Have you tried overriding the Grid control? not sure if this will work as I
don't know if the OnMouseDown is virtual or not.
--
Simon Hart
http://simonrhart.blogspot.com
"Tim Frawley" wrote:
> If I tap & hold on the grid the mousedown doesn't fire. The mouse
> down will fire if I tap and hold and move the stylus.
>
> I want Mousedown to fire when I tap and hold so that I can do hittest
> for context menu popup.
>
> Private Sub grdSpecies_MouseDown(ByVal sender As Object, _
> ByVal e As System.Windows.Forms.MouseEventArgs) Handles
> grdSpecies.MouseDown
> Dim hitTest As DataGrid.HitTestInfo
> grdSpecies = CType(sender, DataGrid)
> hitTest = grdSpecies.HitTest(e.X, e.Y)
> Select Case hitTest.Type
> Case DataGrid.HitTestType.Cell
> grdSpecies.Select(hitTest.Row)
> End Select
> End Sub
>
>
Date:Thu, 26 Jul 2007 01:38:12 -0700
Author:
|
Re: Tap & hold on grid doesn't fire mousedown
Thanks Simon,
I will try that.
Tim
Date:Thu, 26 Jul 2007 11:32:27 -0700
Author:
|
|
|