Page 1 of 1

TMultiGet [Solved]

Posted: Sun Jun 08, 2008 6:16 pm
by Enrico Maria Giordano
In the following sample you will notice that the Enter key doesn't fire the ON CHANGE clause:

Code: Select all

#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

Re: Bug in TMultiGet

Posted: Sun Jun 08, 2008 6:18 pm
by Enrico Maria Giordano
A possible fix in KeyChar() method:

Code: Select all

   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

Posted: Sun Jun 08, 2008 6:25 pm
by Otto
Enrico, is this only an error on veriosn 8.05?
Thanks in advance
Otto

Posted: Sun Jun 08, 2008 6:27 pm
by Enrico Maria Giordano
No, it is an old bug.

EMG

Re: Bug in TMultiGet

Posted: Sat Jul 26, 2008 10:40 am
by Enrico Maria Giordano
Any news?

EMG

Re: TMultiGet

Posted: Sun Mar 22, 2009 10:40 am
by Enrico Maria Giordano
Just to take this bug up. :-)

EMG

Re: TMultiGet

Posted: Thu Dec 03, 2009 11:32 am
by Enrico Maria Giordano
Toc toc :-)

EMG