Subject | Re: [IBO] IB_Grid: Why is AFont declared const ? |
---|---|
Author | Nando Dessena |
Post date | 2001-04-02T14:55:28Z |
Mario,
believe.
Anyway, you should change AFont's properties; if you have another TFont
object and you want to copy it over AFont, use the Assign method.
HTH
--
____
_/\/ando
> in the event functions OnGetCellProps and OnGetCellFont of a TIB_Gridto prevent you from changing the reference (which is a good thing), I
> the parameter AFont is declared as const. Why?
believe.
> I get compiler warnings (BCB5) when I change the font saying that I'mDelphi would have issued an error instead of just a warning.
> trying to change a const object.
Anyway, you should change AFont's properties; if you have another TFont
object and you want to copy it over AFont, use the Assign method.
HTH
--
____
_/\/ando