bGotFocus three beeps

bGotFocus three beeps

Postby MarcoBoschi » Thu Nov 24, 2011 10:57 am

If I enter in the combo using mouse I hear the sound once.
If I enter using keyboard (TAB) I hear three times instead
Do you know why?

King regards

marco


Code: Select all  Expand view
#include "fivewin.ch"

#DEFINE EM_SETSEL   177
#DEFINE VK_CTRL_Z    26

REQUEST HB_GT_GUI_DEFAULT


FUNCTION main()

   LOCAL oDlg
   LOCAl oGet1  , cGet1  := PADR( "Marco Boschi"                , 100 )
   LOCAL oCombo , cCombo := "BERSANI MARCO          "

   LOCAL aItem := { "Antonio"             , ;
                    "Enrico"              , ;
                    "Marco"               , ;
                    "James"  }

   DEFINE DIALOG oDlg FROM 1 , 1 TO 20 , 100

   @ 1,1 GET oGet1 VAR cGet1 of oDlg update
   oGet1:bGotFocus  := { || tone( 800,4)  }

   @ 4 , 1 COMBOBOX oCombo VAR cCombo OF oDlg  ITEMS aItem  STYLE CBS_DROPDOWN    SIZE 300 , 300
   oCombo:oGet:bGotFocus  := { || tone(1000,4)  }
//    oCombo:bGotFocus  := { || tone(1000,4)  }


   ACTIVATE DIALOG oDlg CENTER

return nil
 
User avatar
MarcoBoschi
 
Posts: 1065
Joined: Thu Nov 17, 2005 11:08 am
Location: Padova - Italy

Re: bGotFocus three beeps

Postby Antonio Linares » Thu Nov 24, 2011 12:49 pm

Marco,

Please test this EXE built with FWH 11.11:

http://code.google.com/p/fivewin-contributions/downloads/detail?name=marco.zop&can=2&q=

Here it sounds just once each one :-)
regards, saludos

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

Re: bGotFocus three beeps

Postby MarcoBoschi » Sun Nov 27, 2011 9:01 am

Antonio,
It's time to upgrade
Many thanks
marco
User avatar
MarcoBoschi
 
Posts: 1065
Joined: Thu Nov 17, 2005 11:08 am
Location: Padova - Italy


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: cmsoft and 84 guests