Mattias Gaertner wrote:
> About 'header': Most often the font name will be the same, but the size
> or the style will be different.
> Maybe better:
> AControl.Font.Assign(GetDefaultHeaderFont)
Yes, ok, but my point was that the user could make up his own needs for
his/her application and use those. 'header' was just an example, and
defining a function like this seems like a hardcoded way.
Maybe GetDefaultFont(dfHeader), with additionally RegisterFont(....)
which returns an integer to you can pass to GetDefaultFont.
Not sure where this 'mapping' could be stored, maybe in the project
(unit) resources ?
Micha
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives