I notice under Delphi 5 that if I am using the repository or inherited
forms, the IDE can be persnickety. Seems like Delphi does not RE-open
forms in a helpful way.

** If form2 inherits from form1, then form1 must be open before you can
play with form2.

Open form1 then form2 no problem. Close all. Now open form2. Tut tut.

This sequence can happen simply in the course of exiting and re-opening a
project. Delphi doesn't open them in the same order I originally did...

Just a minor annoyance I've never figured out how to avoid.


> Hi people,
> I'm getting this error message at design time:
> "Error creating form: Cannot focus a disabled or invisible window."
> I've tried with a test application with just 2 forms and I've got
> the same error.
> The main form is an empty one. I am able to open the project and it
> appears on screen.
> The second form is the problematic one. When I press <Shift>F12 to
> view it then I get the error message.
> But there is something intrigant: it happens only after Closing All
> and reopening the project.
> When project is opened, with Form1 and recent created Form2 (from
> Repository), all is fine: I can even close Form2 and reopen it as
> many times as I want without any problem.
> But, if I close all, I'll get the error message when reopenig
> project and tring to view Form2 (pressing <Shift>F12).
> If necessary I can post Cannot_Focus_Invisible_Window.rar on file
> area. It's a sample 15K project, with just 2 forms and no syntax
> errors (not to intend to run).
> Thanks,
> Roberto
>
>
>


Reply via email to