Found this on Foxite
If all else fails you can put this in the click event.
LOCAL lnLast
lnLast = INKEY(_dblclick,"MS")
IF lnLast = 151
this.DblClick()
ELSE
*code for the click here
ENDIF
There was also another method for using a timer.
HTH
Graham
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Graham Brown
Sent: 04 July 2008 14:31
To: GrahamB
Subject: BindEvents Question
Hi all
I've created a grid in code, the columns are readonly and allow cell
selection is .t.
With Thisform.grid1
.Top=30
.RecordSourceType=1
.RecordSource="temp"
.ColumnCount=3
.Columns(1).Name="column1"
.Columns(1).ControlSource="temp.f_date"
.Columns(2).Name="column2"
.Columns(2).ControlSource="temp.car"
etc etc
I then want to use both MDown so I can drag and drop and double click to
bring up a screen to edit the record highlighted.
I didn't want allow cell selection .t because the cells show in the grid
as white when I click on them. setting cell selection .f. kills the drag
and drop but that's another problem.
So the code
for n=1 to thisform.grid1.columns.count
=bindEvent(thisform.grid1.columns(n).text1,"MouseDown",thisform,"Mdown")
=bindEvent(thisform.grid1.columns(n).text1,"DBLClick",thisform,"EditRec"
)
next
The call to MDown works fine and the drag and drop is working The call
to EditRec doesn't work unless I comment out MDown in which case it
does, so I guess the two calls are cancelling each other out.
I've tried the bind events the other way round and that doesn't work.
Is it possible to do this with Fox?
Regards
Graham Brown
--- StripMime Report -- processed MIME parts --- multipart/alternative
text/plain (text body -- kept)
text/html
---
[excessive quoting removed by server]
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/[EMAIL PROTECTED]
** All postings, unless explicitly stated otherwise, are the opinions of the
author, and do not constitute legal or medical advice. This statement is added
to the messages for those lawyers who are too stupid to see the obvious.