[futurebasic] RE : Double Click on EF

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : May 1999 : Group Archive : Group : All Groups

From: PierreSi@...
Date: Wed, 26 May 1999 12:59:06 EDT
I ‘ve found the solution to my problem.
Whenever a _preview events of id _preefClick occures, I put the current 
tickcount in a global variable. If the current tickcount is less then 15 more 
then the last tickcount then the user has double clicked on the edit field.

The code I use , in FN DoDialog, is :

  SELECT evnt
    CASE _preview
      SELECT id
        CASE _Preefclick
          IF FN TICKCOUNT<gTick&+15 THEN FN Splash2'Double click on Edit Field
          gTick&=FN TICKCOUNT
      END SELECT

It works even if the user has clicked on two different edit fields, but that 
problem will be easily solved.

Anyway, thanks to Steve and Brian for their help!

Pierre