I try to use xbrowse with a one dimensional array :
- Code: Select all Expand view
@ 0,0 XBROWSE oBrw OF oChild;
COLUMNS 1;
SIZES nBr-40;
SIZE nBr,nH-8;
ARRAY arr;
LINES;
PIXEL
oBrw:bkeyDown := { | nkey | IIF(nkey==13 , (nAt := oBrw:nArrayAt , oChild:end()) , ) }
oBrw:LDblClick := {||nAt := oBrw:nArrayAt , oChild:end()} //Is executed when the dialog is activated
oBrw:CreateFromCode()
When oBrw:lDblClick is defined ,
::cDataType := valtype( EVAL( ::bEditValue ) )
It seems that EVAL(::bEditValue) executes oBrw:lDblclick
Placing a tracelog in lDblclick :
[\MCLS\HENWIN\ProcSixCdx.prg->(b)EENSELX] (1302) Called from:
xbrowse.prg->TXBRWCOLUMN:ADJUST(5533)
xbrowse.prg->TXBROWSE:ADJUST(724)
xbrowse.prg->TXBROWSE:INITIATE(708)
->__OBJSENDMSG(0)
...
I don't understand !