Page 1 of 1

Different colors of rows in LISTBOX

Posted: Wed Nov 03, 2010 7:27 am
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

Re: Different colors of rows in LISTBOX

Posted: Sat Nov 06, 2010 9:08 am
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 ) }

Re: Different colors of rows in LISTBOX

Posted: Sat Nov 06, 2010 4:47 pm
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