Hi,
Is it possible to have in each column an other backgroundcolor with the normal browse or should I use xBrowse?
Thanks,
Marc
different backgroundcolors for each column
-
- Posts: 1102
- Joined: Mon Oct 17, 2005 5:41 am
- Location: Belgium
- Contact:
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
-
- Posts: 1102
- Joined: Mon Oct 17, 2005 5:41 am
- Location: Belgium
- Contact:
Antonio,
I use
The fields arts->hkleur and arts->kleur are holding the rgb color.
I inserted a msginfo() to see the value in ncol but it's always returing nil. How do I know the column number?
Thanks,
Marc
I use
Code: Select all
func ColumnColor(ncol)
local ret_val
msginfo(ncol)
if ncol= 1
ret_val = arts->hkleur
else
ret_val = arts->kleur
endif
return ret_val
I inserted a msginfo() to see the value in ncol but it's always returing nil. How do I know the column number?
Thanks,
Marc
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
Marc,
What FWH version are you using ?
Please check that you have this code in Class TWBrowse, function wBrwLine()
What FWH version are you using ?
Please check that you have this code in Class TWBrowse, function wBrwLine()
Code: Select all
SetBkColor( hDC, If( nColAct != nil, If( ValType( nClrBack ) == "B",;
Eval( nClrBack, n ), nClrBack ),;
If( ValType( nClrPane ) == "B", Eval( nClrPane, n ), nClrPane ) ) )
-
- Posts: 1102
- Joined: Mon Oct 17, 2005 5:41 am
- Location: Belgium
- Contact:
Antonio,
I use FWH7.10.
I have this line
Regards,
Marc
I use FWH7.10.
I have this line
Code: Select all
SetBkColor( hDC, If( nColAct != nil, If( ValType( nClrBack ) == "B",;
Eval( nClrBack ), nClrBack ), nClrPane ) )
Marc
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
-
- Posts: 1102
- Joined: Mon Oct 17, 2005 5:41 am
- Location: Belgium
- Contact: