Actually, it can be, but it's a little tricky.
CREATE CLASS myheader OF headlib AS textbox && or whatever baseclass
** add custom PEM's, code methods, etc. as if you were in a header class
** e.g., set FontBold = .T. and FontName = "Symbol"
** close and save class
USE headlib.vcx
REPLACE baseclass WITH 'header', class WITH 'header' FOR baseclass = 'line'
USE
COMPILE CLASS headlib
** test in a form
MODI FORM testhead
** add a grid, set ColumnCount = 2
** the headers should be Arial font, not bold
** close and save form
USE testhead.scx
REPLACE class WITH 'myheader', classloc WITH 'headlib.vcx' FOR baseclass = 'header'
USE
COMPILE FORM testhead && not really necessary
MODI FORM testhead
** the headers should be in Symbol font, bold
To edit the myheader class, use COPY MEMO and APPEND MEMO and work in a PRG for the method code. Properties you can edit directly in the VCX properties field.
!! Just be aware, in the properties memo field, Name of the object is always the last property listed for the object.
>Calvin,
>
>I only have one class in a .prg my custom header class which can't be in stored a vcx.
Insanity: Doing the same thing over and over and expecting different results.