Purpose
List of font conditions that are to be considered when drawing rows.
Class
Type
Access
Data Type
Description
Provides a list of font conditions that can draw rows in different fonts. The list of font conditions is an object of the class bFontConditionList. New font conditions can be added by bBrowser:FontCondition:Add(). Whether font conditions are defined can be checked with the method bBrowser:ExistFontConditions().
All rows for which no font conditions exist are drawn with the font from bBrowser:DataView object.
So that changes that were made in the list of font conditions can be implemented, all data must be re-read by the method bBrowser:Refresh().
Samples
In the following sample a font condition is defined in which all customer are highlighted for which the field FEMININE contains the value TRUE. As font the default font of the bBrowser with attribute bold is uses.
LOCAL odbsCUSTOMER AS DBServer
LOCAL oBrowser AS bBrowser
LOCAL oFont AS Font
LOCAL oFontCondition AS bFontCondition
// create browser and show it
odbsCUSTOMER := DBServer{"CUSTOMER"}
oBrowser := bBrowser{oOwner,;
1000,;
Point{0, 0},;
Dimension{300, 250}}
oBrowser:Use(odbsCUSTOMER)
oBrowser:Show()
// define font for the font condition
oFont := oBrowser:GetDefaultFont()
oFont:Bold := TRUE
// define font condition
oFontCondition := bFontCondition{"Server:FEMININE",;
odbsCUSTOMER,;
oFont}
oBrowser:FontCondition:Add(oFontCondition)
// IMPORTANT
// -> Reread data
oBrowser:Refresh()
See Also
bBrowser:ExistFontConditions()
Page url: http://www.YOURSERVER.com/index.html?bbrowser_fontcondition.htm