FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour xbrowse image
Posts: 332
Joined: Thu Nov 17, 2005 09:11 PM

xbrowse image

Posted: Mon Oct 20, 2014 05:45 PM

Hi,

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

Thanks.
Wanderson.

Posts: 458
Joined: Tue Mar 14, 2006 07:26 PM

Re: xbrowse image

Posted: Mon Oct 20, 2014 06:02 PM
Hello Wanderson,

Code (fw): Select all Collapse
     //---------------- 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
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM

Re: xbrowse image

Posted: Tue Oct 21, 2014 09:34 AM
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 (fw): Select all Collapse
oCol:SetCheck( { "RESOURCENAME", nil } )
Regards



G. N. Rao.

Hyderabad, India
Posts: 332
Joined: Thu Nov 17, 2005 09:11 PM

Re: xbrowse image

Posted: Tue Oct 21, 2014 04:55 PM
jmartial wrote:Hello Wanderson,

Code (fw): Select all Collapse
     //---------------- 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!
Posts: 332
Joined: Thu Nov 17, 2005 09:11 PM

Re: xbrowse image

Posted: Tue Oct 21, 2014 04:56 PM
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 (fw): Select all Collapse
oCol:SetCheck( { "RESOURCENAME", nil } )


Thank you!

Continue the discussion