Popup Menu's Parent/Owner Component
- From: simonkolomyjec@xxxxxxxxx
- Date: Tue, 23 Oct 2007 21:52:41 -0700
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
.
- Follow-Ups:
- Re: Popup Menu's Parent/Owner Component
- From: Maarten Wiltink
- Re: Popup Menu's Parent/Owner Component
- Prev by Date: Re: HKLM\Software\Microsoft\Windows\CurrentVersion\Sha redDlls
- Next by Date: Re: How to time the execution of a method?
- Previous by thread: How to time the execution of a method?
- Next by thread: Re: Popup Menu's Parent/Owner Component
- Index(es):
Relevant Pages
|