• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 526
  • Last Modified:

TnoteBook not inheritable ??

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
fadyg
Asked:
fadyg
  • 2
1 Solution
 
ITugayCommented:
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
 
ITugayCommented:
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
 
pnh73Commented:
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 Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now