Assign PopupMenu to TAdvPanel

How to assign a Popupmenu to the Caption of the TAdvPanel.

Tried to Use the onCaptionClick event.

The AdvPanel.PopupMenu is currently not caption area specific but is used for the entire panel.

You could check the mouse coordinates from the OnMouseDown event to see if it is in the caption area and from there programmatically invoke a popup menu specific for the caption.

Yes i've done that, but the OnMouseDown only react on the caption when the Buttons are turned on and only on the place where the buttons are.