"Cannot assign a TFont to a TFont" error
Posted on 2001-06-09
I've run into a problem while trying to create and add TTabsheet pages to a TPageControl from within a DLL.
aTabSheet := TTabSheet.Create(aPageControl);
aTabSheet.PageControl := aPageControl;
Now, creating the TabSheet seems to work fine. But when I assign the PageControl to the PageControl property of the TabSheet, I get a "Cannot assign a TFont to a TFont" error. Now this seems bizarre to me, as there's no mention of a TFont in any of my code. Could this be a bug in Delphi??
Anyway, if anyone has any idea as to what might be causing the problem, or how to solve it, I would really appreciate hearing from you.