Stop VCL Child Controls from Inheriting Parent Popup Menu
Posted
by Anagoge
on Stack Overflow
See other posts from Stack Overflow
or by Anagoge
Published on 2010-04-14T01:02:38Z
Indexed on
2010/04/14
1:13 UTC
Read the original article
Hit count: 447
I have a Delphi 2007 VCL TPanel with a TPopupMenu assigned to it. There are some TEdit controls on the panel. The edits inherit the popup menu of the parent panel. I want to not allow this popup inheriting, so the edits will show the default Windows TEdit popup menu with Copy, Cut, Paste, etc., but have not found a way to do it yet. There doesn't appear to be a "ParentPopupMenu" type property to set which controls inherit it from the parent component.
© Stack Overflow or respective owner