Solved

TnoteBook not inheritable ??

Posted on 2002-05-27
3
507 Views
Last Modified: 2011-10-03
I'm using a TNotebook on an ancestor form.

When I try to create a new form based on this ancestor form, I get an message saying that I cannot inherit from it.

Tracing through the code of TNoteBook, I found that it is created with an Exclude(FComponentStyle, csInheritable).

Any reason for that ? will I encounter any problem if I subclass it and override the create function and remove this statement ?

thanks,
Fadyg
0
Comment
Question by:fadyg
  • 2
3 Comments
 
LVL 9

Accepted Solution

by:
ITugay earned 100 total points
ID: 7036730
Hi fadyg,

I suppose that it because of Borland trying to prevent use this component. May be I'm wrong, but Delphi's help:
<<
...
TNotebook is provided for backward compatibility. New applications should use TPageControl instead.
>>

-----
Igor
0
 
LVL 9

Expert Comment

by:ITugay
ID: 7036735
another idea is that when component is csInheritable, then component needs to check its properties for readability. But there can be problems with COM controls.
0
 
LVL 1

Expert Comment

by:pnh73
ID: 9006916
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

Accept answer from ITugay

Please leave any comments here within the next seven days.
 
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
 
Paul (pnh73)
EE Cleanup Volunteer
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now