| Allegro CL version 8.2 Unrevised from 8.1 to 8.2. 8.1 version |
Arguments: grid-row grid-column
This generic function is called whenever a grid-widget
cell is drawn, to
determine the font that will be current when draw-cell is called for the cell.
A font should be returned to be used for the cell that lies at the
intersection of the specified row and column. An application may add
cell-font methods
to determine the current font for various cells. Call make-font-ex or make-font to make the
font to return.
The default method calls the font-reader function of the
grid-column on the data-object of the
grid-row if both of those properties have been
supplied by the application, and otherwise returns the font property of the
column if it is non-nil
, and otherwise
returns the font
property of the whole grid-widget
.
While a custom draw-cell method could simply call
with-font to
establish the font on the fly, defining cell-font methods may be needed
when built-in draw-cell methods are used. For
example, a default grid cell will draw a centered string from the
value returned by read-cell-value, without the
application supplying a custom draw-cell method. And when using
the grid-column
mixin classes that
supply built-in grid cell widgets, such as editable-text-column-mixin
and
combo-box-column-mixin
, built-in
draw-cell methods
are always used, and so a custom cell-font method can control the
font of the otherwise built-in drawing behavior of those cells.
Copyright (c) 1998-2016, Franz Inc. Oakland, CA., USA. All rights reserved.
This page was not revised from the 8.1 page.
Created 2010.1.21.
| Allegro CL version 8.2 Unrevised from 8.1 to 8.2. 8.1 version |