Disable Double Click

Disable Double Click

Postby Jeff Barnes » Wed Mar 11, 2009 4:50 pm

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.
Thanks,
Jeff Barnes

(FWH 16.11, xHarbour 1.2.3, Bcc730)
User avatar
Jeff Barnes
 
Posts: 929
Joined: Sun Oct 09, 2005 1:05 pm
Location: Ontario, Canada

Re: Disable Double Click

Postby Antonio Linares » Thu Mar 12, 2009 7:49 am

Jeff,

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

#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
 
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42099
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Disable Double Click

Postby Jeff Barnes » Thu Mar 12, 2009 11:08 pm

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.
Thanks,
Jeff Barnes

(FWH 16.11, xHarbour 1.2.3, Bcc730)
User avatar
Jeff Barnes
 
Posts: 929
Joined: Sun Oct 09, 2005 1:05 pm
Location: Ontario, Canada


Return to FiveWin for Pocket PC

Who is online

Users browsing this forum: No registered users and 20 guests