Hi,
How i can display a image (in .res file) on xbrowse column depending on the content? The field is logical.
Thanks.
Wanderson.
xbrowse image
Re: xbrowse image
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
Joaquín Martínez
- nageswaragunupudi
- Posts: 8017
- Joined: Sun Nov 19, 2006 5:22 am
- Location: India
- Contact:
Re: xbrowse image
After including this logical column also in the xbrowse in the usual wayWanderson wrote:Hi,
How i can display a image (in .res file) on xbrowse column depending on the content? The field is logical.
Thanks.
Wanderson.
Code: Select all
oCol:SetCheck( { "RESOURCENAME", nil } )
Regards
G. N. Rao.
Hyderabad, India
G. N. Rao.
Hyderabad, India
Re: xbrowse image
Thanks, works great!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 //----------------------------------------
Re: xbrowse image
Thank you!nageswaragunupudi wrote:After including this logical column also in the xbrowse in the usual wayWanderson wrote:Hi,
How i can display a image (in .res file) on xbrowse column depending on the content? The field is logical.
Thanks.
Wanderson.Code: Select all
oCol:SetCheck( { "RESOURCENAME", nil } )