En un xBrowse por recursos, necesito ver una lista de precios, pero la columna numerica aunque en la columna le indico la secuencia para mascara (PICTURE) en cEditPicture, me muestra la columna sin separadores.
He revisado otros Post, y cEditPicture, no ofrece mucha detalle, en los ejemplos de la FWH, tampoco se tiene mucho alcance, mas para prueba y error.
Por otro lado al declarar un BRUSH y quererlo insertar al xBrowse con SetBackGround( oBrush ) me da un error (ver abajo).
- Code: Select all Expand view RUN
DEFINE BRUSH oBrush FILE "fondos\fact.bmp"
* Define la lista XBrowse
WITH OBJECT ( oBrowse := TXBrowse():new( oWndChilds[1] ) )
:CreateFromResource( 803 )
:cAlias := "MOVI"
:nColDividerStyle := LINESTYLE_FORECOLOR
:lColDividerComplete := .T.
:nMarqueeStyle := MARQSTYLE_HIGHLROW
:lAllowRowSizing := .F.
:lRecordSelector := .F.
:lAllowColHiding := .F.
:lAutoSort := .T.
:lAllowRowSizing := .F.
:lHScroll := .F.
:bClrSel := {|| { CLR_BLACK, GetSysColor( 13 ) } }
:SetBackGround( oBrush )
&& Agrega columna al xBrowse
WITH OBJECT ( oCol := :AddCol() )
:cHeader := "Descripción"
:bStrData := {|| MOVI->MOVI_DESCR }
:nWidth := 256
:nHeadStrAlign := AL_CENTER
END
&& Agrega columna al xBrowse
WITH OBJECT ( oCol := :AddCol() )
:cHeader := "Precio"
:bStrData := {|| MOVI->MOVI_PRECI }
:nWidth := 90
:nHeadStrAlign := AL_CENTER
:nDataStrAlign := AL_RIGHT
:cEditPicture := "@Z 99,999.9999"
END
END
El error que me causa insertar SetBackGround( oBrush )
[/quote]Error description: Error BASE/1004 Class: 'NIL' has no exported method: EVAL
Args:
[ 1] = U
Stack Calls
===========
Called from: => EVAL(0)
Called from: XBROWSE.prg => (b)TXBROWSE:TXBROWSE(286)
Called from: => TXBROWSE:KEYCOUNT(0)
Called from: XBROWSE.prg => TXBROWSE:REFRESH(823)
Called from: WINDOW.prg => (b)TWINDOW:TWINDOW(544)
Called from: => TXBROWSE:SETBRUSH(0)
Called from: XBROWSE.prg => TXBROWSE:SETBACKGROUND(3602)
Called from: Inv_cfac.prg => GENFACT(191)
Called from: M2.prg => (b)MAIN(141)
Called from: BTNBMP.prg => TBTNBMP:CLICK(389)
Called from: BTNBMP.prg => TBTNBMP:LBUTTONUP(560)
Called from: => TWINDOW:HANDLEEVENT(0)
Called from: CONTROL.prg => TCONTROL:HANDLEEVENT(1429)
Called from: BTNBMP.prg => TBTNBMP:HANDLEEVENT(1042)
Called from: WINDOW.prg => _FWH(3300)
Called from: => WINRUN(0)
Called from: WINDOW.prg => TMDIFRAME:ACTIVATE(951)