- Code: Select all Expand view
- Time from start: 0 hours 0 mins 0 secs
Error occurred at: 04/09/20, 01:25:59
Error description: Error BASE/1132 Bound error: array access
Args:
[ 1] = A { ... } length: 0
[ 2] = N 1
Stack Calls
===========
Called from: .\source\classes\TFOLDEX.PRG => TFOLDEREX:DEFAULT( 825 )
Called from: .\source\classes\TFOLDEX.PRG => TFOLDEREX:INITIATE( 1047 )
Called from: => __OBJSENDMSG( 0 )
Called from: .\source\function\HARBOUR.PRG => OSEND( 291 )
Called from: .\source\function\HARBOUR.PRG => ASEND( 259 )
Called from: .\source\classes\DIALOG.PRG => TDIALOG:INITIATE( 805 )
Called from: .\source\classes\DIALOG.PRG => TDIALOG:HANDLEEVENT( 1120 )
Called from: => DIALOGBOXINDIRECT( 0 )
Called from: .\source\classes\DIALOG.PRG => TDIALOG:ACTIVATE( 304 )
Called from: test.prg => TEST( 58 )
the test
- Code: Select all Expand view
- #include "Fivewin.ch"
Function test()
local oDlgPre
local oFolder
local lGiorno:=.t.
local oBtnGiorn
local aImagesGiorno:= {"giornaliero.png","periodico.png"}
local aBitmaps := {".\bitmaps\prenota.bmp",".\bitmaps\pag.bmp"}
DEFINE DIALOG oDlgPre TITLE "TEST" SIZE 400,400;
PIXEL TRUEPIXEL RESIZABLE
@ 1, 0 FOLDEREX oFolder ;
OF oDlgPre ;
PROMPT "Prenotazioni","Pagamenti" ;
BITMAPS aBitmaps ;
PIXEL ;
SIZE 100,100
oDlgPre:bResized := <||
local oRect := oDlgPre:GetCliRect()
oFolder:nWidth := oRect:nRight-2
oFolder:nHeight := oRect:nBottom-60
return nil
>
ACTIVATE DIALOG oDlgPre CENTERED ;
ON INIT( EVAL( oDlgPre:bResized) )
RETURN NIL
Now I saw it not run without resources winxp theme ....strange