Painting browse cells

Post Reply
jbinfo
Posts: 7
Joined: Mon Aug 28, 2006 1:33 pm
Location: Brazil

Painting browse cells

Post by jbinfo »

Dear Friends,

After hardly trying, I could'nt find a way to paint each individual cell of an Fw Browse... The class simply haven't got an especific method to do that... In spite of it's methods can paint a column or a row, there's no way to paint only one cell!
I've asked the same question in brazilian fw forum and they told me to try the TsBrowse Class, but I could not compile it using FWH 2.7 + xHarbour 0.99.1...

Can someone here help me to solve this issue?

Best Regards,

Guilherme J. S. Gonçalves
Campinas - SP - Brasil
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Guilherme,

If you review source\classes\wbrowse.prg you will find at the bottom a static function wBrwLine() which is responsable for painting each line.

In its code, there is a loop where each cell is painted:

Code: Select all

for n := nColPos to Len( aValues )
  ... each cell is painted ...
next
regards, saludos

Antonio Linares
www.fivetechsoft.com
jbinfo
Posts: 7
Joined: Mon Aug 28, 2006 1:33 pm
Location: Brazil

Post by jbinfo »

Thanks Antonio!

After reviewing the source code I found that the variable 'nClrPane' accepts a code block as its value. Now I know exactly what I gotta do to make the cell painting....

Best Regards,


Obrigado,
Guilherme J. S. Gonçalves
Campinas - SP - Brasil
Post Reply