 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Jonathan Ulfeng Guest
|
Posted: Fri Jan 16, 2004 12:51 am Post subject: Re: ShowModal Problem |
|
|
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 |
|
 |
|
|
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
|
|