On Thu, 29 Nov 2007 12:10:38 -0800
el stamatakos <[EMAIL PROTECTED]> wrote:

> 
> Hi All,
>  
>  I have the following situation. I have 2 forms. Form1 and Form2
>  
> In Form1 (unit1.pas) I use a TMainMenu and I have a Menu Project->New
>  
> when I click on Project->New another form should pop up. This used to
> work but for some reason it does not any longer. 
> I have an EventHandler for Project->New that is MenuNewItemClick and
> this is defined on OnClick 
> it is in unit1.pas
>  
> ---------------unit1.pas----------------
>  
> uses
> CreateChild
> ...
> ...
> ...
>  
> procedure TForm1.MenuItemNewClick(Sender:TObject);
> begin
> CreateChild;
> end;
>  
> I then define
>  
> procedure TForm1.CreateChild;
> var
> Child:TChildForm;
> begin
> Child:=TChildForm.Create(Self);
> end;

Should work.
Is Child.visible = true?


> 1) I have an MDI application and when I clicked on a menu it would
> open another form. Now it does not any idea how I can fix this.Can
> you give a little more information ?



Mattias

_________________________________________________________________
     To unsubscribe: mail [EMAIL PROTECTED] with
                "unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to