Hi,

I am creating a object at runtime.  This object has a popup menu that
is also created at runtime.  I will be creating many copies of this class.
What I want to do is, in the OnClick menu code, to know some of the
values of the properties of the object e.g.,

procedure THPTree.NewView(Sender: TObject);
begin
    CreateView(xxx.TreeType);
end;

where xxx is the object that was RightClicked to invoke the PopUp menu.

the CreateView code looks like this;

procedure THPTree.CreateView(const Name: string);
var
  Child: TfrmView;
begin
  { create a new Scope View child window }
  Child := TfrmView.Create(Application);
  Child.Caption := Name;
end;

TfrmView is a MDI form.

Chrissy.



---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED] 
with body of "unsubscribe delphi"

Reply via email to