Solved

TnoteBook not inheritable ??

Posted on 2002-05-27
3
515 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Enroll in June's Course of the Month

June’s Course of the Month is now available! Experts Exchange’s Premium Members, Team Accounts, and Qualified Experts have access to a complimentary course each month as part of their membership—an extra way to sharpen your skills and increase training.

Question has a verified solution.

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

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

690 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