xbrowse image

Post Reply
Wanderson
Posts: 332
Joined: Thu Nov 17, 2005 9:11 pm

xbrowse image

Post by Wanderson »

Hi,

How i can display a image (in .res file) on xbrowse column depending on the content? The field is logical.

Thanks.
Wanderson.
jmartial
Posts: 457
Joined: Tue Mar 14, 2006 7:26 pm

Re: xbrowse image

Post by jmartial »

Hello Wanderson,

Code: Select all


     //---------------- Imágen ---------------
      oCol := :AddCol()
      oCol:AddResource( 6001 )
      oCol:AddResource( 6002 )
      oCol:bBmpData         := {|| IIf( ::oDbfTemp:c_nohist, 1, 2 ) }
      oCol:lBmpStretch      := .f.
      oCol:lBmpTransparent  := .t.
      oCol:nHeadStrAlign    := oCol:nDataBmpAlign := AL_CENTER
      oCol:cHeader          := "P"
      oCol:nWidth           := 18
      //----------------------------------------
Un Saludo,
Joaquín Martínez
User avatar
nageswaragunupudi
Posts: 8017
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Contact:

Re: xbrowse image

Post by nageswaragunupudi »

Wanderson wrote:Hi,

How i can display a image (in .res file) on xbrowse column depending on the content? The field is logical.

Thanks.
Wanderson.
After including this logical column also in the xbrowse in the usual way

Code: Select all

oCol:SetCheck( { "RESOURCENAME", nil } )
 
Regards

G. N. Rao.
Hyderabad, India
Wanderson
Posts: 332
Joined: Thu Nov 17, 2005 9:11 pm

Re: xbrowse image

Post by Wanderson »

jmartial wrote:Hello Wanderson,

Code: Select all


     //---------------- Imágen ---------------
      oCol := :AddCol()
      oCol:AddResource( 6001 )
      oCol:AddResource( 6002 )
      oCol:bBmpData         := {|| IIf( ::oDbfTemp:c_nohist, 1, 2 ) }
      oCol:lBmpStretch      := .f.
      oCol:lBmpTransparent  := .t.
      oCol:nHeadStrAlign    := oCol:nDataBmpAlign := AL_CENTER
      oCol:cHeader          := "P"
      oCol:nWidth           := 18
      //----------------------------------------
Thanks, works great!
Wanderson
Posts: 332
Joined: Thu Nov 17, 2005 9:11 pm

Re: xbrowse image

Post by Wanderson »

nageswaragunupudi wrote:
Wanderson wrote:Hi,

How i can display a image (in .res file) on xbrowse column depending on the content? The field is logical.

Thanks.
Wanderson.
After including this logical column also in the xbrowse in the usual way

Code: Select all

oCol:SetCheck( { "RESOURCENAME", nil } )
 
Thank you!
Post Reply