> > 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.,
> 
> [To confirm I understand what you mean ... ]
> 
> You have one popup menu that can be popped up by right clicking 
> any of a number of different components - and you want the 
> click handler of the menu item to be able to identify the component
> that got the click.     Is that right?
> 
> If it is - the TPopupMenu.PopupComponent property of the
> menu item will give you that.
> 
> hope this helps
> 
> -ns

This is not quite what I have.  I have, as part of the class, a popup menu.
I think that this means that each copy of the object has its own popup
menu.  This is not a problem because, are they menu is not changed,
they will all point to the same memory anyway (at least that is what I think).

But, having said that, I think that your suggestion will work.

Thanks - Chrissy

www.home.gen.nz 

---------------------------------------------------------------------------
    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