🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #2761

Re: Application->CreateForm

#2761
From: Dmitry Konnov
Date: Sat, 25 Nov 2006 10:04
26 lines
1576 bytes
Remy

> No.  CreateForm() can only use the TComponent* constructor and no other.

That is very pitty.
In my memory Delphi allows to do this. Why Builders not supported that?


In a while i override this problem just introducing new Method to base Form
class,
Like
void __fastcall Init(...)

so i must to do for all forms

  TEditCard *a_EditCard = NULL;
        Application->CreateForm(FindClass("EditCardClass"),  &a_EditCard);
  a_EditCard->Init(...);
  a_EditCard->Show();

which is actually constructor params replacement.
but no standard.

Dmitry
http://sourceforge.net/project/showfiles.php?group_id=141030
Technical Details
Message-ID: <456814f4@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news2.volia.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <45672a82@newsgroups.borland.com> <4567a282$3@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,cc726ca6ac385fd3
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
Reply-To: "Dmitry Konnov" <dmitry@weblinedesign.biz>
From: "Dmitry Konnov" <dmitry@weblinedesign.biz>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <45672a82@newsgroups.borland.com> <4567a282$3@newsgroups.borland.com>
Subject: Re: Application->CreateForm
Date: Sat, 25 Nov 2006 13:04:21 +0300
Lines: 28
Organization: weblinedesign
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
NNTP-Posting-Host: 212.58.203.114
Message-ID: <456814f4@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1164449012 212.58.203.114 (25 Nov 2006 02:03:32 -0700)
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news2.volia.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail