DynamicFontBold, DynamicFontItalic, DynamicFontName, DynamicFontSize, DynamicFontStrikeThru, DynamicFontUnderline, DynamicFontOutline, DynamicFontShadow
The first six of these properties let you control the font characteristics of individual cells in a column of a grid. Like the dynamic color properties, these are very cool. The last two properties don't do anything in VFP/Windows, but can be used in VFP/Mac.
Usage |
colColumn.DynamicFontBold = cBoldExpression cBoldExpression = colColumn.DynamicFontBold colColumn.DynamicFontItalic = cItalicExpression cItalicExpression = colColumn.DynamicFontItalic colColumn.DynamicFontName = cNameExpression cNameExpression = colColumn.DynamicFontName colColumn.DynamicFontSize = cSizeExpression cSizeExpression = colColumn.DynamicFontSize colColumn.DynamicFontStrikeThru = cStrikeThruExpression cStrikeThruExpression = colColumn.DynamicFontStrikeThru colColumn.DynamicFontUnderline = cUnderlineExpression cUnderlineExpression = colColumn.DynamicFontUnderline |
Example |
* In the grid described under DynamicBackColor, imagine that we * want to highlight expensive products. We'll set some columns * to use italics for any product with a unit_price of * more than $50. * For each column you want italicized, set it with this * expression, assuming This represents the grid: This.DynamicFontItalic = "IIF(Product.Unit_Price>50,.T.,.F.) |
See Also |
AFont(), DynamicAlignment, DynamicBackColor, DynamicForeColor, DynamicInputMask, FontBold, FontItalic, FontName, FontOutline, FontShadow, FontSize, FontStrikeThru, FontUnderline |