- Code: Select all Expand view
- #include "FiveWin.ch"
#define Badge0001 ".\modelli\badge000.bmp"
static oBack,oDlg ,oRBar
Function test()
DEFINE DIALOG oDlg FROM 317, 412 TO 730, 832 PIXEL
@ 2, 0 BITMAP oBack filename Badge0001 ADJUST
ACTIVATE DIALOG oDlg;
ON PAINT Bardialog()
return nil
Function Bardialog()
DEFINE BUTTONBAR oRBar SIZE 25, 25 OF oDlg 2007
return nil
IT MAKE ERROR
Application
===========
Path and name: C:\tessera\test.Exe (32 bits)
Size: 1,858,560 bytes
Time from start: 0 hours 1 mins 22 secs
Error occurred at: 03/03/10, 18:12:33
Error description: Error BASE/1004 Class: 'NIL' has no exported method: GETCLIRECT
Args:
[ 1] = U
Stack Calls
===========
Called from: => GETCLIRECT(0)
Called from: .\source\classes\BAR.PRG => TBAR:NEW(85)
Called from: test3.prg => BARDIALOG(25)
Called from: test3.prg => (b)TEST(18)
Called from: .\source\classes\DIALOG.PRG => TDIALOG:PAINT(853)
Called from: .\source\classes\DIALOG.PRG => (b)TDIALOG:TDIALOG(86)
Called from: => TDIALOG:DISPLAY(0)
Called from: .\source\classes\DIALOG.PRG => TDIALOG:HANDLEEVENT(915)
Called from: => DIALOGBOXINDIRECT(0)
Called from: .\source\classes\DIALOG.PRG => TDIALOG:ACTIVATE(273)
Called from: .\source\function\ERRSYSW.PRG => ERRORDIALOG(343)
Called from: .\source\function\ERRSYSW.PRG => (b)ERRORSYS(27)
Called from: => GETCLIRECT(0)
Called from: .\source\classes\BAR.PRG => TBAR:NEW(85)
Called from: test3.prg => BARDIALOG(25)
Called from: test3.prg => (b)TEST(18)
Called from: .\source\classes\DIALOG.PRG => TDIALOG:PAINT(853)
i TRYED ALSO WITH
ON INIT Bardialog()
WHY IT MAKE ERROR ?