form1 := Tform1.Create(application); or
form1 := Tform1.Create(nil); or
form1 := Tform1.Create(tform1, form1);
then try to call -------- form1.showmodal;
The strange thing about this is, the form isn't auto-created but it appears
on screen without me calling Show or Showmodal (it isn't an MDI child
either).
Why is this happening and how do I fix it? I'm using D2.
Thanks.
Hi,
Check the "visible" property of the form. It may not be TRUE.
Hope this helps
Andreas
--
helicon software development | helicon Translator for Delphi 3
| Localization tool for
hel...@helicon.co.at | Inprise/Borland Delphi 3
http://www.helicon.co.at | http://www.helicon.co.at/translator3
Aem, "may not be TRUE" does not mean "TRUE can cause this problem"?
Sorry if I used the wrong words - English is not my native language.
Anyway, try to set it to FALSE.
That's why it is showing, because visible is set to true (probably at
design time).
Set Visible to false in order to make the window modal.
--matt
Andreas,
Your English is fine. The statement you made can be
interpreted two ways, and he picked the other one <g>. The
way you meant it, it said that the value in a form in *this
situation* can not be set to true, but he thought you meant
that the value in *his* form might not be true, so he
checked, and it was.
Cheers,
Terry
Was the form _ever_ set up as an MDI child? I know that if I set up a
form originally as an MDI child, then try to change it to Normal, I
get this message...
<jay.jackson@no_spam.mci.com> wrote:
>I get this error each time I try to show a specific form as modal. There's
>nothing special about this form (single border, Normal style), but I get
>this "Cannot make a visible window modal" when trying to show this form as
>modal. This happens whether I use
>
>form1 := Tform1.Create(application); or
>form1 := Tform1.Create(nil); or
>form1 := Tform1.Create(tform1, form1);
>
>then try to call -------- form1.showmodal;
>
>The strange thing about this is, the form isn't auto-created but it appears
>on screen without me calling Show or Showmodal (it isn't an MDI child
>either).
>
>Why is this happening and how do I fix it? I'm using D2.
>
>Thanks.
>
But, I don't remember if I tried this or not, but you might want to
make a copy of .pas file, then delete all of the code from all of the
procedures/functions in the original. Then save (which should get rid
of the procedure/function blocks). Then, through the property editor,
re-create all of your procedures/functions, and paste the saved code
back in.
I don't know if this will help or not, and in fact, thinking about it,
it's basically what I had to do when starting over, just with a brand
new form...
Sorry, I know this is not necessarily the answer you're looking for...
On Thu, 14 May 1998 16:01:33 -0400, "Jay Jackson"
<jay.jackson@no_spam.mci.com> wrote:
>Yes, it was originally a MDI Child. How did you fix yours?
>
>
Since I only have a german version of D
Under Project - Options - Forms
move Form1 from the left Listbox to the Listbox on the right (maybe
Available Forms)
Martin Sommerhalder <ma...@somdata.ch>
Jay Jackson schrieb in Nachricht <6jafq7$al...@forums.borland.com>...