home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.databases.paradox      To crash or not to crash, asks Borland      9,834 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 8,408 of 9,834   
   Bill McCray to jmose@mapson.attglobal.net   
   Re: MouseDouble and MouseClick/MouseUp   
   04 Apr 07 09:10:02   
   
   From: McCrayBill@SpringMind.com   
      
   On 3 Apr 2007 11:03:58 -0400, "Jim Moseley"   
    wrote:   
      
   >   
   > Greetings all.  I'm stumped on what seems to be an easy question.   
   >   
   > I've got an MRO form, where each row has a selection checkbox.  If the user   
   > single-clicks, I want to select the checkbox.  If the user double-clicks,   
   > I want to jump to another edit screen showing that record.   
   >   
   > This all works fine, except I can't figure out how to kill the single-click   
   > event if they double-click.  It is selecting the checkbox AND opening the   
   > other screen, when all I want is the other screen to open.   
   >   
   > I've got my double-click code in the record's MouseDouble event.  I've tried   
   > to put the single-click code in the record's MouseClick or MouseUp events   
   > but both work the same way.   
   >   
   > All fields in the record use PassEvent in their associated events.   
   >   
   > Any clues on how to disable the single-click event once a double-click   
   happens?   
      
   I'm just guessing, but it seems to me that a double click would always   
   trigger both the single-click and double-click events.  Thus, on a   
   double click, the single-click event would already have happened by   
   the time the double-click event triggered.  If you don't want the   
   effect of the single click to occur, you would have to undo the effect   
   of the single click in the double-click event code.   
      
   Bill   
      
   ----------------------------------------------------------------   
   Reverse halves of the user name for my e-address   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca