TDialog ON CLICK bug
Posted: Mon Apr 10, 2006 9:11 am
This is the sample (click has no effect):
And this is a possible solution:
EMG
Code: Select all
#include "Fivewin.ch"
FUNCTION MAIN()
LOCAL oDlg
DEFINE DIALOG oDlg
ACTIVATE DIALOG oDlg;
ON CLICK MSGINFO( "Test" );
CENTER
RETURN NIL
Code: Select all
METHOD HandleEvent( nMsg, nWParam, nLParam ) CLASS TDialog
do case
case nMsg == WM_INITDIALOG
return ::Initiate( nWParam, nLParam )
case nMsg == WM_PAINT
return ::Display()
case nMsg == WM_PRINTCLIENT
return ::PrintClient( nWParam )
case nMsg == WM_LBUTTONDOWN
if ::lHelpIcon
::Help()
endif
return Super:HandleEvent( nMsg, nWParam, nLParam ) // EMG
otherwise
return Super:HandleEvent( nMsg, nWParam, nLParam )
endcase
return nil