Stop control of VCL children when entering a parent pop-up menu

I have a Delphi 2007 VCL TPanel with TPopupMenu assigned to it. The panel has several TEdit controls. Editing inherits the popup menu of the parent panel. I want this pop-up inheritance not to be allowed, so editing will show the default Windows TEdit pop-up menu using Copy, Cut, Paste, etc., but so far I have not found a way to do this. There seems to be no property like ParentPopupMenu to set which controls inherit it from the parent component.

+4
source share
2 answers

Try setting the PopupMenu AutoPopup property to False, and then manually popup the menu () when necessary, because, as in the TPanel event OnContextMenu.

+5
source

This is QC # 54286: Parent-PopupMenu overrides the standard context menu . Andreas Hausladen VCL Fix Pack fixes the problem, so it works as you expect.

+4
source

Source: https://habr.com/ru/post/1306873/


All Articles