Solved

TnoteBook not inheritable ??

Posted on 2002-05-27
3
512 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 Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

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

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Simple Delphi Question 9 96
code issue 8 153
Tembedded WB animatid gifs not animated on some pcs 2 83
Slow Restore if incremental backups using RDiff.exe 4 29
A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

807 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