Article View: borland.public.cppbuilder.oodesign
Article #29Re: class design
From: Sabetay Toros
Date: Mon, 12 Jul 2004 14:53
Date: Mon, 12 Jul 2004 14:53
41 lines
2619 bytes
2619 bytes
Alisdair, > Mixing a Panel and a TabSheet does not sound too difficult from the > things I can imagine doing with it, but I don't like to limit > applications to just my own imagination!! > Thank you very much for your contrubitions. Mixing a panel and a TabSheet is not difficult and I've made it. This question was a silly one. Again thanks Sabetay "Alisdair Meredith (TeamB)" <alisdair.NO.SPAM.PLEASE.meredith@uk.renaultf1.com> wrote in message news:40f267dd@newsgroups.borland.com... > Sabetay Toros wrote: > > > I need a class which will have the functionality of TCustomPanel and > > TTabSheet. Both these classes are derived from TWinControl. Since I'm > > using C5 Builder and does not have multiple inheritance how can I > > solve this problem. Any suggestions > > Which functionality can you only achieve through inheritance, and what > can you manage with composition? > > For instance, if you need your control to appear as part of a tab-set, > then you probably need to derive from TTabSheet. However, you can give > your control a single TCustomPanel as a data member, and forward all > calls you want to support. > > If you could explain a little more about what you want to achieve, it > would be easier to guess the best compromise solution <g> > > Mixing a Panel and a TabSheet does not sound too difficult from the > things I can imagine doing with it, but I don't like to limit > applications to just my own imagination!! > > Note: Just because it may be 'simple' does not mean it will not be a > lot of seemingly-redundant work with a lot of call forwarding!! > > AlisdairM(TeamB)
Technical Details
Message-ID:
<40f2a5f5@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!border1.nntp.dca.giganews.com!nntp.giganews.com!atl-c02.usenetserver.com!c03.atl99!news.usenetserver.com!news02.tsnz.net!newsfeed01.tsnz.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<40f1a4df@newsgroups.borland.com> <40f267dd@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10db1e,55fe9bb22bccde9c X-Google-Attributes: gid10db1e,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Sabetay Toros" <bilsarbiz@ttnet.net.tr> Newsgroups: borland.public.cppbuilder.oodesign References: <40f1a4df@newsgroups.borland.com> <40f267dd@newsgroups.borland.com> Subject: Re: class design Date: Mon, 12 Jul 2004 17:53:26 +0300 Lines: 43 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 NNTP-Posting-Host: 81.213.124.231 Message-ID: <40f2a5f5@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1089644021 81.213.124.231 (12 Jul 2004 07:53:41 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!border1.nntp.dca.giganews.com!nntp.giganews.com!atl-c02.usenetserver.com!c03.atl99!news.usenetserver.com!news02.tsnz.net!newsfeed01.tsnz.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail