This is very strange.
Mouse clicks should never be buffered.
If you click on a disabled control, no click event should ever happen.

Try disabling the form instead.

In other Windows programming languages, my standard way of foiling the 
"clickers" is to disable the whole form, not just the clicked control.  I only 
reenable the form when my click event code is done executing.

Dennis McGrath



________________________________
From: [email protected] [mailto:[email protected]] On Behalf Of jan johansen
Sent: Monday, March 02, 2009 2:49 PM
To: RBASE-L Mailing List
Subject: [RBASE-L] - Re: Mouse Happy Users

John,

Then I would use the suggestions provided by Emmitt/Bill.

Jan


-----Original Message-----
From: "John Engwer" <[email protected]>
To: [email protected] (RBASE-L Mailing List)
Date: Mon, 2 Mar 2009 15:22:23 -0500
Subject: [RBASE-L] - Re: Mouse Happy Users
Jan,

I have tried disabling the DBGrid but the mouse clicks are stored in a buffer 
and as soon as you re-enable the DBGrid the EPP executes again.

John

From: [email protected] [mailto:[email protected]] On Behalf Of jan johansen
Sent: Monday, March 02, 2009 3:04 PM
To: RBASE-L Mailing List
Subject: [RBASE-L] - Re: Mouse Happy Users

John,

I've done things like putting this in my on-clik eep.

IF vSelectedRow IS NOT NULL THEN
   PROPERTY mydbgrid ENABLED 'FALSE'
   --do what I need to do here
   PROPERTY mydbgrid ENABLED 'TRUE'
 ELSE
   PROPERTY mdbgrid ENABLED 'TRUE'
ENDIF
RETURN

Jan


-----Original Message-----
From: "John Engwer" <[email protected]>
To: [email protected] (RBASE-L Mailing List)
Date: Mon, 2 Mar 2009 14:57:33 -0500
Subject: [RBASE-L] - Mouse Happy Users
In my applications I use a LOT of DBGrids that require a single mouse click to 
execute an EEP.  Most users like the fact that one click is all that is 
required.  However, are always a few  users that when they see a list, they 
think you should click the mouse at least two or three times (I call them Mouse 
Happy Users).  This causes the EEP to execute twice (or more), sometimes 
producing undesirable results or error conditions.  I have tried warning 
messages "Single Click Only!" but they ignore the warning and keep clicking 
away.  Does anyone have a way to suppress the mouse after one click that 
doesn't require a lot of programming?

John Engwer
Engwer & Associates
2449 Scenic Ridge Drive
North Huntingdon, PA 15642-2120

Phone: 412 751-2433
Email: [email protected]<mailto:[email protected]>
WWW.ENGWER.US<http://www.ENGWER.US>

Reply via email to