Picture and text in one column

Picture and text in one column

Postby Natter » Thu Jan 10, 2019 8:24 am

Hi !

Is it possible to simultaneously display in one column xbrowsa the picture and the text ?
Natter
 
Posts: 1224
Joined: Mon May 14, 2007 9:49 am

Re: Picture and text in one column

Postby nageswaragunupudi » Thu Jan 10, 2019 2:18 pm

Configure picture in one column and text in the next column and then use oColPic:SetColsAsRows( { n, n+ 1 } )

Sample:
Code: Select all  Expand view  RUN
function XbrImageAndText()

   local cPath    := "c:\fwh\bitmaps\pngs\"
   local aDir     := DIRECTORY( cPath + "
*.png" )

   AEval( aDir, { |a| a[ 1 ] := cPath + a[ 1 ], a[ 2 ] := cFileNoExt( a[ 1 ] ) } )

   XBROWSER aDir COLUMNS { 1, 1, 2 } SETUP ( ;
      oBrw:nMarqueeStyle            := 2, ;
      oBrw:aCols[ 2 ]:cDataType     := "
F", ;
      oBrw:aCols[ 2 ]:nDataBmpAlign := AL_CENTER, ;
      oBrw:aCols[ 3 ]:nDataStrAlign := AL_CENTER, ;
      oBrw:aCols[ 3 ]:bClrStd       := { || { CLR_WHITE, CLR_GREEN } }, ;
      oBrw:aCols[ 2 ]:SetColsAsRows( { 2, 3 } ) ;
      )

return nil


Image
Regards

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

Re: Picture and text in one column

Postby Natter » Thu Jan 10, 2019 8:22 pm

Thanks, Mr.Rao !
Natter
 
Posts: 1224
Joined: Mon May 14, 2007 9:49 am


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 61 guests