FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index Bugs report & fixes / Informe de errores y arreglos TMultiGet [Solved]
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
TMultiGet [Solved]
Posted: Sun Jun 08, 2008 06:16 PM
In the following sample you will notice that the Enter key doesn't fire the ON CHANGE clause:

Code (fw): Select all Collapse
#include "Fivewin.ch"


REQUEST HB_GT_GUI_DEFAULT


FUNCTION MAIN()

    LOCAL oDlg, oGet

    LOCAL cVar := ""

    DEFINE DIALOG oDlg

    @ 0, 0 GET oGet VAR cVar MEMO;
           SIZE 100, 30;
           ON CHANGE TONE( 440, 1 )

    @ 3, 0 BUTTON "&Close" ACTION oDlg:End()

    ACTIVATE DIALOG oDlg;
             CENTER

    RETURN NIL


EMG
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: Bug in TMultiGet
Posted: Sun Jun 08, 2008 06:18 PM
A possible fix in KeyChar() method:

   if nKey == VK_RETURN .and. ;
      lAnd( GetWindowLong( ::hWnd, GWL_STYLE ), ES_WANTRETURN )
      ::oWnd:nLastKey = 0
      if ::bChange != nil  // EMG
         Eval( ::bChange, nKey, nFlags, Self )  // EMG
      endif  // EMG
      return nil
   endif


EMG
Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
TMultiGet [Solved]
Posted: Sun Jun 08, 2008 06:25 PM

Enrico, is this only an error on veriosn 8.05?
Thanks in advance
Otto

Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
TMultiGet [Solved]
Posted: Sun Jun 08, 2008 06:27 PM

No, it is an old bug.

EMG

Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: TMultiGet
Posted: Sun Mar 22, 2009 10:40 AM

Just to take this bug up. :-)

EMG

Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM

Continue the discussion