BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Re: ShowModal Problem

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi (General)
View previous topic :: View next topic  
Author Message
Jonathan Ulfeng
Guest





PostPosted: Fri Jan 16, 2004 12:51 am    Post subject: Re: ShowModal Problem Reply with quote



The first thing that I noticed was in the very beginning in the
project code, you have two forms being auto created. One is the main
form and onother "form 3". You also create this form again (form3) in
a button click event. I suspect that since form3 is auto created and
in memory, it is causing this problem. You should go to the project->
options menu item and remove form3 from the auto create list.

-Jonathan

"Leon Zandman" <usenet (AT) wirwar (DOT) com> wrote

Quote:
Why doesn't work this code???

I've taken a quick look and the only thing that seemed odd to me was
that you don't call the inherited code in your CreateWithColor
constructor. Try this:

constructor TColorForm.CreateWithColor
(Value:Pointer;Owner:TComponent);
begin
FColor:=Value;
String(FColor^):='';
inherited Create(Owner);
end;

Greetz,

Leon Zandman

Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi (General) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.