I have a form which contains a grid. I want the user to be able to
(left)Click on a row of the grid to perform a Click method; and to
DoubleClick to do a different, DblClick method.
I can't get them to work together, even when I increase the _DBLCLICK value
to its maximum (about 5.5 seconds). The form seems to respond to a
doubleclick as if it were a singleclick.
I *am* able to get Click and RightClick to coexist.
I can also code for a DblClick by itself.
But the bottom line is: I can't get Click, DblClick, and RightClick all to
function in the same control or object.
Why is this?
(By the way, I think the explanation of _DBLCLICK in the VFP 6.0 Language
Reference is wrong. It says the syntax is _DBLCLICK = nTicks, but it should
say _DBLCLICK = nSeconds, where 0 < nSeconds <= 5.5)

--
Peter Rooney
magnetix@ix.netcom.com

Re: Click and DblClick conflict? (VFP6) by Gene

Gene
Mon Jun 27 15:52:48 CDT 2005

On Mon, 27 Jun 2005 18:13:57 GMT, "Peter Rooney"
<magnetix@ix.netcom.com> wrote:

>I have a form which contains a grid. I want the user to be able to
>(left)Click on a row of the grid to perform a Click method; and to
>DoubleClick to do a different, DblClick method.
>I can't get them to work together, even when I increase the _DBLCLICK value
>to its maximum (about 5.5 seconds). The form seems to respond to a
>doubleclick as if it were a singleclick.
>I *am* able to get Click and RightClick to coexist.
>I can also code for a DblClick by itself.
>But the bottom line is: I can't get Click, DblClick, and RightClick all to
>function in the same control or object.
>Why is this?
>(By the way, I think the explanation of _DBLCLICK in the VFP 6.0 Language
>Reference is wrong. It says the syntax is _DBLCLICK = nTicks, but it should
>say _DBLCLICK = nSeconds, where 0 < nSeconds <= 5.5)

I have never been able to get doubleclick and click to work
together. The doubleclick causes click to fire.

Sincerely,

Gene Wirchenko


Re: Click and DblClick conflict? (VFP6) by Fred

Fred
Mon Jun 27 20:25:36 CDT 2005

You could do something like this:

* Click event code
IF INKEY(__DBLCLICK,"M")=151
NODEFAULT
this.DblClick()
RETURN
ENDIF
*
* Your regular click code here
*
***

Note that this will wait for a mouse click for whatever your _DBLCLICK
setting is before executing your Click code. It may not be what you want.

--
Fred
Microsoft Visual FoxPro MVP


"Peter Rooney" <magnetix@ix.netcom.com> wrote in message
news:FlXve.13908$eM6.6879@newsread3.news.atl.earthlink.net...
>I have a form which contains a grid. I want the user to be able to
> (left)Click on a row of the grid to perform a Click method; and to
> DoubleClick to do a different, DblClick method.
> I can't get them to work together, even when I increase the _DBLCLICK
> value
> to its maximum (about 5.5 seconds). The form seems to respond to a
> doubleclick as if it were a singleclick.
> I *am* able to get Click and RightClick to coexist.
> I can also code for a DblClick by itself.
> But the bottom line is: I can't get Click, DblClick, and RightClick all to
> function in the same control or object.
> Why is this?
> (By the way, I think the explanation of _DBLCLICK in the VFP 6.0 Language
> Reference is wrong. It says the syntax is _DBLCLICK = nTicks, but it
> should
> say _DBLCLICK = nSeconds, where 0 < nSeconds <= 5.5)
>
> --
> Peter Rooney
> magnetix@ix.netcom.com
>
>



Re: Click and DblClick conflict? (VFP6) by Andrew

Andrew
Tue Jun 28 02:10:07 CDT 2005

"Peter Rooney" <magnetix@ix.netcom.com> wrote in message
news:FlXve.13908$eM6.6879@newsread3.news.atl.earthlink.net...
>I have a form which contains a grid. I want the user to be able to
> (left)Click on a row of the grid to perform a Click method; and to
> DoubleClick to do a different, DblClick method.
> I can't get them to work together, even when I increase the _DBLCLICK
> value
> to its maximum (about 5.5 seconds). The form seems to respond to a
> doubleclick as if it were a singleclick.
> I *am* able to get Click and RightClick to coexist.
> I can also code for a DblClick by itself.
> But the bottom line is: I can't get Click, DblClick, and RightClick all to
> function in the same control or object.
> Why is this?

Because like most of Foxpro controls, it's kludgey. One normally doesn't
notice but every now and then you get to see between the gaps.

--
Regards
Andrew Howell



SV: Click and DblClick conflict? (VFP6) by Anders

Anders
Tue Jun 28 07:23:27 CDT 2005

Hi
Try _INCSEEK instead.
-Anders



Den 05-06-27 20.13, i artikeln
FlXve.13908$eM6.6879@newsread3.news.atl.earthlink.net, skrev "Peter Rooney"
<magnetix@ix.netcom.com>:

> I have a form which contains a grid. I want the user to be able to
> (left)Click on a row of the grid to perform a Click method; and to
> DoubleClick to do a different, DblClick method.
> I can't get them to work together, even when I increase the _DBLCLICK value
> to its maximum (about 5.5 seconds). The form seems to respond to a
> doubleclick as if it were a singleclick.
> I *am* able to get Click and RightClick to coexist.
> I can also code for a DblClick by itself.
> But the bottom line is: I can't get Click, DblClick, and RightClick all to
> function in the same control or object.
> Why is this?
> (By the way, I think the explanation of _DBLCLICK in the VFP 6.0 Language
> Reference is wrong. It says the syntax is _DBLCLICK = nTicks, but it should
> say _DBLCLICK = nSeconds, where 0 < nSeconds <= 5.5)


Re: Click and DblClick conflict? (VFP6) by Fred

Fred
Tue Jun 28 11:58:26 CDT 2005

Not in VFP6. That started in VFP7, I believe.

--
Fred
Microsoft Visual FoxPro MVP


"Anders" <anders.altberg@telia.com> wrote in message
news:BEE70DDF.1564%anders.altberg@telia.com...
> Hi
> Try _INCSEEK instead.
> -Anders
>
>
>
> Den 05-06-27 20.13, i artikeln
> FlXve.13908$eM6.6879@newsread3.news.atl.earthlink.net, skrev "Peter
> Rooney"
> <magnetix@ix.netcom.com>:
>
>> I have a form which contains a grid. I want the user to be able to
>> (left)Click on a row of the grid to perform a Click method; and to
>> DoubleClick to do a different, DblClick method.
>> I can't get them to work together, even when I increase the _DBLCLICK
>> value
>> to its maximum (about 5.5 seconds). The form seems to respond to a
>> doubleclick as if it were a singleclick.
>> I *am* able to get Click and RightClick to coexist.
>> I can also code for a DblClick by itself.
>> But the bottom line is: I can't get Click, DblClick, and RightClick all
>> to
>> function in the same control or object.
>> Why is this?
>> (By the way, I think the explanation of _DBLCLICK in the VFP 6.0 Language
>> Reference is wrong. It says the syntax is _DBLCLICK = nTicks, but it
>> should
>> say _DBLCLICK = nSeconds, where 0 < nSeconds <= 5.5)
>