Different colors of rows in LISTBOX

Post Reply
kadziola
Posts: 26
Joined: Tue May 11, 2010 7:26 am

Different colors of rows in LISTBOX

Post by kadziola »

Hi All ,

Is this possible in FWPPC ?

Code: Select all

oBrw:bClrStd := { || If( oBrw:lActive, { CLR_BLACK, CLR_WHITE }, { CLR_WHITE, CLR_HGRAY } ) }
When i try apply this command i get error :

Message not found
TWBROWSE:_BCLRSTD
Args:
[ 1] = O TWBROWSE
stack calls:
__ERRRT_SBASE(0)
TWBROWSE:ERROR(0)
(b)HBOBJECT(0)
TWBROWSE:MSGNOTFOUND(0)
TWBROWSE:_BCLRSTD(0)
KROK_2(1070)
(b)KROK_1(1003)
TCONTROL:LBUTTONDOWN(0)
TWBROWSE:LBUTTONDOWN(0)
TWINDOW:HANDLEEVENT(0)
TCONTROL:HANDLEEVENT(0)
TWBROWSE:HANDLEEVENT(0)
_FWPPC(0)
WINRUN(0)
TWINDOW:ACTIVATE(0)
PIERWSZE_OKNO(212)
MAIN(133)




Regards
Jaroslaw Kadziola
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: Different colors of rows in LISTBOX

Post by Antonio Linares »

Jaroslaw,

Try it this way:

oBrw:nClrPane := { || If( oBrw:lActive, CLR_WHITE, CLR_HGRAY ) }
oBrw:nClrText := { || If( oBrw:lActive, CLR_BLACK, CLR_WHITE ) }
regards, saludos

Antonio Linares
www.fivetechsoft.com
kadziola
Posts: 26
Joined: Tue May 11, 2010 7:26 am

Re: Different colors of rows in LISTBOX

Post by kadziola »

Hi Antonio !

Code: Select all

oBrw:nClrPane := { || If( oBrw:lActive, CLR_WHITE, CLR_HGRAY ) }
oBrw:nClrText := { || If( oBrw:lActive, CLR_BLACK, CLR_WHITE ) }
This is It ! Thanks a lot !

Best Regards
Jaroslaw Kadziola
Post Reply