Purpose
Defines the graphic representation of column highlighting.
Class
Type
Access / Assign
Data Type
Description
With bBrowserColumn:HighlightStyle the graphic representation of column highlighting can be defined. The background color and the alpha blend ratio can be defined.
If this access contains a NULL_OBJECT, then the settings are used from bBrowser:ColumnHighlightStyle to draw the highlighting.
So that a column is highlighted one of the following accesses must be assigned at least the value TRUE:
•bBrowserColumn:CaptionHighlighted
•bBrowserColumn_FooterHighlighted
So that changes at this access are also shown in the browser, the column must be redrawn with the method bBrowser:Redraw(). This is only necessary if the column is inside the visible area of the browser.
Samples
In the sample below a bBrowser is created in which the column for the field CUST_ID is highlighted.
LOCAL odbsCUSTOMER AS DBServer
LOCAL oBrowser AS bBrowser
LOCAL oColumn AS bDataColumn
// Create and show a bBrowser
odbsCUSTOMER := DBServer{"CUSTOMER"}
oBrowser := bBrowser{oOwner,;
1000,;
Point{0, 0},;
Dimension{300, 250}}
oBrowser:Use(odbsCUSTOMER)
oBrowser:Show()
// Highlight column CUST_ID
oColumn := oBrowser:GetColumn(#CUST_ID)
oColumn:HighlightStyle := bHighlightStyle{Brush{Color{COLORRED}},;
BABR_NORMAL}
oColumn:CaptionHighlighted := True
oColumn:FooterHighlighted := True
oColumn:DataHighlighted := True
// Importand!!!
// -> Redraw Browser
oBrowser:Redraw()
See Also
bBrowser:GetColumnHighlightStyle()
bBrowserColumn:CaptionHighlighted
bBrowserColumn:FooterHighlighted
Page url: http://www.YOURSERVER.com/index.html?bbrowsercolumn_highlightstyle.htm