?
Solved

TnoteBook not inheritable ??

Posted on 2002-05-27
3
Medium Priority
?
519 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 400 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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…
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…
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: …
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…

764 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