Popup Menu's Parent/Owner Component



Hi,

I have a app that dynamically creates a page in a pagecontrol with a
memo and assigns a popupmenu to each memo. This popup menu has a
print, export and close page item.

I can close the page fine by closing the active page in the page
control, however i cannot print or save the memo contents because i
can not get access to the popup menu's owner (i.e. the memo) when the
popup menu is clicked.

I have tried:
(Sender as TMemo)
(Sender as TpopupMenu).Owner as TMemo)
(Sender as Tpopupmenu).Parent as TMemo)


Any suggestions

Thanks
Simon

.



Relevant Pages

  • Re: Popup Menus Parent/Owner Component
    ... memo and assigns a popupmenu to each memo. ... can not get access to the popup menu's owner when the ... (Sender as TpopupMenu).Owner as TMemo) ...
    (comp.lang.pascal.delphi.misc)
  • Re: pop up form
    ... <MS ACCESS MVP> ... "GREGORY HICKMOTT" wrote in message ... > I have a field called memo that I would like to popup read only for copy ...
    (microsoft.public.access.forms)
  • pop up form
    ... I have a field called memo that I would like to popup read only for copy ... past by pressing a Special key any quick way of doing this with code or ...
    (microsoft.public.access.forms)
  • Re: mail header Content-Disposition
    ... > action on the part of the recipient, while inline message components ... > is needed to allow the sender to transmit this sort of presentational ... > approaches is beyond the scope of this memo; ... > indicate a default archival disposition; a filename. ...
    (comp.security.misc)
  • Re: Re: Re: save memo and print with exact wordwrapping
    ... These soft brakes in a tmemo are completely elusive somehow. ... character that can be in a memo that doesn't show up but still can be there. ... So memo line spacing is unprintable. ...
    (alt.comp.lang.borland-delphi)