Mr. Rao, oFont en oCol

Mr. Rao, oFont en oCol

Postby Ariel » Wed Apr 11, 2018 9:21 pm

Hola,


tengo esta definicion de una columna de un xbrowse, tambien la tengo que cambiar a SETFont( ) ?
Code: Select all  Expand view

WITH OBJECT ::oBrw:aCols[4]
       :addresource( cBmpCheck )     
       :bBmpData   := { || if(::oSql:codcli==0,2,if(::oSql:cantid==0,1,0)) }
        :bStrData   := { || if(::oSql:cantid<>0,TRANSFORM(::oSql:cantid,oApp:CantidPict),"") }
        :nDataBmpAlign := AL_CENTER

esto es asi :      
:oDataFont := {|| ::oFontb }
o asi :
:oDataFont:SetFont( ::oFontb )
o
:SetFont( ::oFontb )


END
 


cual seria la correcta ?
Gracias.
Ariel
 
Posts: 376
Joined: Wed Nov 29, 2006 1:51 pm
Location: Rosario - Argentina

Re: Mr. Rao, oFont en oCol

Postby acuellar » Wed Apr 11, 2018 10:54 pm

Intenta asi:

Code: Select all  Expand view

  oDataFont:=oFont
 
Saludos,

Adhemar C.
User avatar
acuellar
 
Posts: 1643
Joined: Tue Oct 28, 2008 6:26 pm
Location: Santa Cruz-Bolivia

Re: Mr. Rao, oFont en oCol

Postby nageswaragunupudi » Thu Apr 12, 2018 2:27 am

If you want to set the font for the entire browse, then use
Code: Select all  Expand view

oBrw:SetFont( oNewFont )
 


If you want to use a font for only a specific column, then
Code: Select all  Expand view

oCol:oDataFont := oFont
// or
oCol:oDataFont := { || oFont }
 
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10620
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: Mr. Rao, oFont en oCol

Postby Ariel » Thu Apr 12, 2018 11:45 am

Gracias!
Ariel
 
Posts: 376
Joined: Wed Nov 29, 2006 1:51 pm
Location: Rosario - Argentina


Return to FiveWin para Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 61 guests