Stop VCL Child Controls from Inheriting Parent Popup Menu?

Try setting the PopupMenu's AutoPopup property to False, and then manually Popup() the menu when needed, since as in the TPanel's OnContextMenu event.

1 Thanks, this OnContextPopup code seems to work: var Control: TControl; begin Control := FindVCLWindow(Mouse. CursorPos) ; if Control = MyPanel then begin MyMenu. Popup(Mouse.CursorPos.

X, Mouse.CursorPos. Y); Handled := True; end; end; – Anagoge Apr 14 '10 at 4:22.

This is QC#54286: Parent-PopupMenu overrides standard context menu. Andreas Hausladen's VCL Fix Pack fixes the issue so it works the way you're expecting it to.

Thanks for the links. It is good to know I'm not alone in considering this a bug. Hopefully Embarcadero will eventually agree.

I decided to go with the AutoPopup fix, since I wanted the simplest possible fix, and I only need it on one form. – Anagoge Apr 14 '10 at 4:20.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions