- Code: Select all Expand view RUN
#include "Fivewin.ch"
FUNCTION MAIN()
LOCAL oDlg
DEFINE DIALOG oDlg
ACTIVATE DIALOG oDlg;
ON CLICK MSGINFO( "Test" );
CENTER
RETURN NIL
And this is a possible solution:
- Code: Select all Expand view RUN
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
EMG