Page 1 of 1

Disable Double Click

Posted: Wed Mar 11, 2009 4:50 pm
by Jeff Barnes
Hi,

Is there a way to disable the double click when in my app.

For some strange reason, when a double click is done on a button that dialog gets sent back one level.

Ex: I open oDlg1 then open oDlg2. So I should see oDlg2 on top of oDlg1.
If the user double clicks instead of a single click, oDlg2 is behind oDlg1.

Re: Disable Double Click

Posted: Thu Mar 12, 2009 7:49 am
by Antonio Linares
Jeff,

Please test this example and you will see that it works fine. There is no need to disable double click:

Code: Select all

#include "FWCE.ch"

function Main()

   local oWnd

   DEFINE WINDOW oWnd TITLE "Main"

   @ 2, 2 BUTTON "Dialog1" SIZE 80, 25 ACTION Dialog1( oWnd )

   ACTIVATE WINDOW oWnd

return nil

function Dialog1( oWnd )

   local oDlg

   DEFINE DIALOG oDlg TITLE "Dialog 1" OF oWnd ;
      SIZE 200, 100

   ACTIVATE DIALOG oDlg CENTERED

return nil
 

Re: Disable Double Click

Posted: Thu Mar 12, 2009 11:08 pm
by Jeff Barnes
After some further testing ... I don't have the issue everywhere in the app.

It seems to be tied to a successful bluetooth connection.

I need to do more testing, but it appears that if the user double taps the "bluetooth" device icon I get this problem when it returns to my program. Almost like it saves the extra tap and uses it to select Dialog1 around the same time that Dialog2 is being created.