OpenDCL Forums

OpenDCL => Studio/Dialog Editor => Topic started by: Jim Short on November 22, 2008, 02:38:13 PM

Title: CheckBox clicked to fast fails proper return
Post by: Jim Short on November 22, 2008, 02:38:13 PM
Beta 5.0.1.3
I saw the post on fast clicking check boxes.
Why does that control have a DblClick event?

With DblClick set true in control, event does not fire.
Where are we on this?
Jim
Title: Re: CheckBox clicked to fast fails proper return
Post by: owenwengerd on November 23, 2008, 06:02:08 AM
It doesn't seem very useful to handle the double click event on a check box, but I just tested and it worked fine for me on Vista.
Title: Re: CheckBox clicked to fast fails proper return
Post by: owenwengerd on November 23, 2008, 06:26:21 AM
I see that the Value property is not yet updated when the DBlClicked event handler is called. Is that what you're referring to?  I've fixed that for Beta 4.
Title: Re: CheckBox clicked to fast fails proper return
Post by: Jim Short on November 23, 2008, 06:32:57 AM
As far as I could tell, when the check box was DblClicked the associated lisp function was not called.
Title: Re: CheckBox clicked to fast fails proper return
Post by: owenwengerd on November 23, 2008, 06:50:36 AM
Can you provide some code and information about your system so I can reproduce the problem?
Title: Re: CheckBox clicked to fast fails proper return
Post by: Jim Short on November 23, 2008, 08:10:30 AM
Yes. When I get back from breakfast.
When both events are checked in OpenDCL
and both events are defined in lisp

Click yields click

DblClick yields click DblClick
Title: Re: CheckBox clicked to fast fails proper return
Post by: Jim Short on November 23, 2008, 08:13:08 AM
Also:

WinXP SP3
Mechanical Desktop 2004 DX SP 2 (using vanilla)
Beta 5.0.1.3

Cheers,
Jim
Title: Re: CheckBox clicked to fast fails proper return
Post by: Jim Short on November 23, 2008, 10:08:13 AM
Test file attached
Title: Re: CheckBox clicked to fast fails proper return
Post by: owenwengerd on November 23, 2008, 04:10:47 PM
Quote from: Jim Short on November 23, 2008, 08:10:30 AM
Click yields click
DblClick yields click DblClick

A double click is exactly that: a click event followed by a double-click event. Is that what you are seeing? If so, that is by design.
Title: Re: CheckBox clicked to fast fails proper return
Post by: owenwengerd on November 23, 2008, 04:13:48 PM
Here is what I see when I double-click on the checkbox three times:
Command: Clicked
Command: DblClicked
Command: Clicked
Command: DblClicked
Command: Clicked
Command: DblClicked

Are you seeing something different?
Title: Re: CheckBox clicked to fast fails proper return
Post by: Jim Short on November 23, 2008, 04:48:13 PM
Owen,
Please excuse my ignorance. I expect that DblClick is working then, if that they way it is designed.
I am saving the check box state while in the click event. I can cause the check mark
to fall out of sink with the the record change.

Why won't entmakex work in check box event? My dictionary functions fail there. See post in OpenDCL Lisp forum.
I tried this in two odcl projects. I had much more difficulty with the complicated one with the check box on the tabbed control.

BTW I am having fewer lockups with Beta 5.0.1.3

Cheers,
Jim