TInspectorBar.OnItemRightClick...

Delphi 10.2. VCL

TInspectorBar version 1.13.3.2

Using an item of type ptPassword.

I want to show the actual password (in a dialog) if, for example, the user right clicks the item while pressing CTRL and prevent the item from going into edit more.

Nothing I tried would get OnItemRightClick to fire.

So moved, to OnMouseDown and can process the CTRL key, show the dialog but, cannot prevent the item from entering edit mode.

Suggestions. Other than overriding the class.

OnItemRightClick is triggered when the item is right-clicked and it is not triggered when a right-click happens on the inplace editor control that is active. If you want to handle a right-click on the active inplace editor, you'll need to implement the InspectorBar.Edit.OnMouseDown event.
Attached project demonstrates this.
Project1.zip (53.0 KB)

Thanks for the response.

Yes, right click when the inplace editor is not active.

The example does not work when mode is imMultiPanelActive, which is what I am using.

OnItemRightClick never fires.

We could see the issue with imMultiPanelActive and applied a fix.
This fix will be included in the next release.

Thanks