edsynergy wrote:
> I have a popup menu that is used by several forms. to keep it simple
> it is sitting on a datamodule used by all the forms. In the onclick
> event I need to find out the name of the form in which the actual menu
> click occured. I have tried various forms Getparentcomponent and the
> like but making no progress
> 
> Is it possible to do this ?

The menu's PopupComponent property tells you which component was clicked 
on. The Sender parameter to the OnClick event tells you which menu item 
was clicked.

-- 
Rob

Reply via email to