Board index » delphi » Class not found? Converting TNotebook to TPageControl
Ron
![]() Delphi Developer |
Ron
![]() Delphi Developer |
Class not found? Converting TNotebook to TPageControl2003-09-22 02:34:09 PM delphi135 I just updated an old project by changing TNotebook to a TPageControl. I modified all references in the form file and code in the process, adding TPageControl and TTabSheet references as needed. Now when I run the project I get a "TTabSheet" class not found error. Strangely, when I add a new PageControl and at least on tab sheet the problem goes away. Both the old and new PageControls behave correctly. If I remove the new instance, the problem returns. What's going on? |
kbarthelmess
![]() Delphi Developer |
2003-09-22 08:02:39 PM
Re:Class not found? Converting TNotebook to TPageControl
"Ron" <XXXX@XXXXX.COM>writes:
QuoteI just updated an old project by changing TNotebook to a TPageControl. I objects must have a non-empty Name property. Good luck. Kurt |
Ron
![]() Delphi Developer |
2003-09-23 01:26:12 PM
Re:Class not found? Converting TNotebook to TPageControl
Yes, ComCtrls is there. The app couldn't compile without it. This is a
runtime error. I did find that the Tabsheets didn't have names, so I named them. However, I still get the error at runtime. Where else should I look for an error? "Kurt Barthelmess (TeamB)" <XXXX@XXXXX.COM>writes Quote"Ron" <XXXX@XXXXX.COM>writes: |
kbarthelmess
![]() Delphi Developer |
2003-09-23 06:12:18 PM
Re:Class not found? Converting TNotebook to TPageControl
"Ron" <XXXX@XXXXX.COM>writes:
QuoteYes, ComCtrls is there. The app couldn't compile without it. This is a QuoteI did find that the Tabsheets didn't have names, so I named them. However, I forms (at design time). You did not say so explicitly, but I had the impression that you do have at least one named TTabSheet on one of your forms, right? that is the only cause I know of. Good luck. Kurt |