Prev: bbrowser and RecordAppend
Next: RSS Feed in VO
From: Kuno on 19 Feb 2010 04:32 Does anyone know how to set the background color of a column caption? The following line is doing what I want: 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.
From: Conrad Breuer on 19 Feb 2010 05:15 Kuno, Try this. LOCAL oColumn AS bDataColumn oColumn := oDCbrowser:GetColumn(String2Symbol(Your ColumnName)) oColumn:CaptionView := bViewStyle{} oColumn:CaptionView:Background:= Brush{color{COLORYELLOW}} HTH Conrad Am 19.02.2010 10:32, schrieb Kuno: > Does anyone know how to set the background color of a column caption? > The following line is doing what I want: > > 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.
From: Hollywood_t on 19 Feb 2010 10:17 Hi Kuno 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
|
Pages: 1 Prev: bbrowser and RecordAppend Next: RSS Feed in VO |