2. Comment out the 2007 clause and you will get an error.
The sample:
- Code: Select all Expand view
- #include "Fivewin.ch"
FUNCTION MAIN()
LOCAL oDlg
DEFINE DIALOG oDlg
ACTIVATE DIALOG oDlg;
ON INIT TOOLBAR( oDlg );
CENTER
RETURN NIL
STATIC FUNCTION TOOLBAR( oDlg )
LOCAL oBtn
DEFINE BUTTONBAR SIZE 40, 45 OF oDlg 2007
DEFINE BUTTON oBtn;
OF oDlg:oBar;
FILE "C:\FWH\BITMAPS\CLOSE.BMP";
PROMPT "Test";
ACTION oDlg:End()
RETURN NIL
EMG