Painting browse cells

Painting browse cells

Postby jbinfo » Wed Aug 30, 2006 12:48 pm

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
jbinfo
 
Posts: 7
Joined: Mon Aug 28, 2006 1:33 pm
Location: Brazil

Postby Antonio Linares » Wed Aug 30, 2006 1:51 pm

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  Expand view
for n := nColPos to Len( aValues )
  ... each cell is painted ...
next
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42099
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby jbinfo » Wed Aug 30, 2006 3:14 pm

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
jbinfo
 
Posts: 7
Joined: Mon Aug 28, 2006 1:33 pm
Location: Brazil


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 101 guests