oColumn:CaptionView := bViewStyle{Color{COLORBLACK},, BALIGN_CENTER}
I was hoping the second parameter would be the background color but it
doesn't seem to be the case and the bViewStyle:Background topic in the
help file isn't very informative.
Any advice would be very much appreciated.
Try this.
LOCAL oColumn AS bDataColumn
oColumn := oDCbrowser:GetColumn(String2Symbol(Your ColumnName))
oColumn:CaptionView := bViewStyle{}
oColumn:CaptionView:Background:= Brush{color{COLORYELLOW}}
HTH
Conrad
This works for me.
// CHANGE View Style
obView := bViewStyle{ color{COLORBLUE}, brush{ color{ColorWhite}},
BALIGN_CENTER, /*font*/, /*BGRID_NONE*/ }
// CONDITION =====================================
oColumn := SELF:oDCbFStrength:GetOpenColumn( #FSTR2DAY )
oColumn:Caption := "Fs2Day"
oColumn:ColorCondition:Add( oColorCondition2 )
oColumn:Alignment := BALIGN_CENTER
oColumn:Width := 44
oColumn:CaptionView := obView
Nick