Article View: borland.public.cppbuilder.nativeapi
Article #1007TFrame changes?
From: Steven Haworth
Date: Wed, 31 Oct 2007 04:31
Date: Wed, 31 Oct 2007 04:31
29 lines
1956 bytes
1956 bytes
Hi,
I am upgrading my BCB2006 application to BCB2007 and I am having issues with
creating TFrame objects. If I define a TFrame descendant in my project that
contains a TWinControl derived control, then I always get the exception
Project xx.exe raised exception class EInvalidOperation with message
'Control 'Frame2' has no parent window'
whenever I try to create the frame at runtime; ie.
TFrame2 *f = new TFrame(this);
If the frame has just a label or something like that on it, then it wont
throw an exception.
This worked fine in BCB2006 but not now.
Unfortunately I cannot reproduce this in a fresh application (my application
was rebuilt by adding the units to a new project file) so it could be in
relation to a 3rd party library, but I don't know which one.
I have been searching everywhere and I know there is some information on the
changes in the codegear blogs, but they seem to be unsearchable, or there is
no information on frames.
Thanks for any help
Steve
Technical Details
Message-ID:
<4728052a@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!feeder3.cambrium.nl!feeder6.cambrium.nl!feed.tweaknews.nl!xlned.com!feeder1.xlned.com!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,67bb774301b7b83,start X-Google-Attributes: gid10cc67,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: "Steven Haworth" <SHaworthatbigponddotnetdotau> Newsgroups: borland.public.cppbuilder.nativeapi Subject: TFrame changes? Date: Wed, 31 Oct 2007 15:31:40 +1100 Lines: 31 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.3138 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198 X-RFC2646: Format=Flowed; Original NNTP-Posting-Host: 58.170.198.173 Message-ID: <4728052a@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1193805098 58.170.198.173 (30 Oct 2007 21:31:38 -0700) Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!feeder3.cambrium.nl!feeder6.cambrium.nl!feed.tweaknews.nl!xlned.com!feeder1.xlned.com!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail