Tengo un xbrowse en un DIALOG y en una columna con EDIT_LISTBOX, el caso es que en edicion en vez de seguir a la columna siguiente, pasa al siguiente control, en WINDOW anda ok, el problema lo presenta en dialogos
Aqui el code :
#include "fivewin.ch"
#include "xbrowse.ch"
function main()
local aData := {}
local oWnd, oBrw, oBar
define window oWnd
define buttonbar oBar size 100,32 of oWnd 2007
define button of oBar prompt 'AddRow' action AddRow( oBrw )
define button of oBar prompt 'DeleteRow' action DelRow( oBrw )
@ 0,0 xbrowse oBrw of oWnd ;
header 'one','two','tipo', "cuatro" ;
columns 1, 2, 3, 4 ;
colsizes 50,70,50,70 ;
pictures '999','mmm dd, yyyy', "9999.99" ;
array aData lines cell fastedit footers
WITH OBJECT oBrw
:bClrStd := { || If( oBrw:KeyNo() % 2 == 0, ;
{ CLR_BLACK, RGB( 224, 236, 255 ) }, ;
{ CLR_BLACK, RGB( 189, 211, 253 ) } ) }
:bPastEof := { || AddRow( oBrw ) }
:bKeyDown := {| nKey | If( nKey == VK_DELETE, DelRow( oBrw ), ) }
END
AEval( oBrw:aCols, { |o| o:nEditType := EDIT_GET } )
WITH OBJECT oBrw:tipo
:nEditType := EDIT_LISTBOX
:aEditListBound := ;
:aEditListTxt := { "NOV", "NTO", "TOR", "VAC", "VAQ", "TM ", "TH " }
END
WITH OBJECT oBrw:cuatro
:nTotal := 0
:lTotal := .t.
END
WITH OBJECT oBrw
:bClrStd := { || If( oBrw:KeyNo() % 2 == 0, ;
{ CLR_BLACK, RGB( 224, 236, 255 ) }, ;
{ CLR_BLACK, RGB( 189, 211, 253 ) } ) }
:bPastEof := { || AddRow( oBrw ) }
:bKeyDown := {| nKey | If( nKey == VK_DELETE, DelRow( oBrw ), ) }
:MakeTotals()
END
oBrw:CreateFromCode()
oWnd:oClient := oBrw
activate window oWnd
return nil
static function AddRow( oBrw )
static n := 0
AAdd( oBrw:aArrayData, { n, date()+n, "NOV", 0 } )
n++
oBrw:GoBottom()
oBrw:Refresh()
oBrw:SetFocus()
return nil
static function DelRow( oBrw )
if oBrw:nLen > 0
ADel( oBrw:aArrayData, oBrw:nArrayAt )
ASize( oBrw:aArrayData, oBrw:nLen - 1 )
oBrw:Refresh()
endif
oBrw:SetFocus()
return nilsi alguien lo pudo resolver agradeceria comparta la solucion.
Gracias.
Salu2, Ariel.