xbrowse headers fwh 10.1

xbrowse headers fwh 10.1

Postby Richard Chidiak » Tue Feb 16, 2010 2:55 pm

Strange behaviour in method paintheader (columns)

if the first column is a bmp (image) , the headers are not painted when the browse is displayed, as soon as you click on any element (header or line item) , the headers get properly displayed.

This only occur if first column is a bitmap and there is no value assigned to the header.
Assigning any value to the header (non blank) will make the browse display normally.
Anyone noticed this before ?

Richard
http://www.cbati.com

Uestudio
Fwh 13.05 Harbour 3.2 MSVC 2013
User avatar
Richard Chidiak
 
Posts: 946
Joined: Thu Oct 06, 2005 7:05 pm
Location: France

Re: xbrowse headers fwh 10.1

Postby nageswaragunupudi » Tue Feb 16, 2010 5:17 pm

For me it is working correctly with FWH 10.1 also.

This is the sample I tested.
Code: Select all  Expand view
#include 'fivewin.ch'
#include 'xbrowse.ch'

function main()

   local oDlg, oBrw
   use sales

   DEFINE DIALOG oDlg SIZE 400,200 PIXEL

   @ 10,10 XBROWSE oBrw SIZE -10,-10 PIXEL OF oDlg ;
      AUTOCOLS ALIAS 'SALES' CELL LINES NOBORDER

   WITH OBJECT oBrw:aCols[ 1 ]
      :cHeader := ''
      :AddBmpFile( '\fwh\bitmaps\addrec.bmp' )
      :nHeadBmpNo := 1
   END


   oBrw:CreatefromCode()
   ACTIVATE DIALOG oDlg CENTERED

return nil
 

Result:
Image
Can you please reproduce the problem you experienced in small self-contained sample?
Regards

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


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 84 guests