Adding a .NET menu on a delphi host using actions

Hi,

I am looking for a way to add a .NET menu in a .NET plugin to a delphi host.
My Delphi host has a menu and I would like to popup a .NET menu from a delphi menu item.

Is this possible?

Thanks

Hello

Take a look at the ‘Advanced Demo’ shipped with Hydra for Delphi.
Similar approach can be used for .NET plugins too. They expose similar .Actions collection where you can define needed actions and methods to execute them and then, once the plugin is loaded, use them to create Delphi host menu items.

Hi,

So the actual menu item (on the Delphi host) will be a delphi control and not a .NET control. Basically the Delphi menu item when clicked will execute an action in .NET plugin.

I was trying to find out if there is a way even the UI can be in .NET as in the menu items and the menu also in .NET. Is that possible?

Also, will this be a .NET Non-Visual Plugin?

Thanks.

Hello

Yes

Ofc no, that will be a visual plugin.

If you need to combine a Delphi-host menu with .NET plugin-based menu item then the 1st approach is the best and only possible way to do it. It is possible to create a visual plugin that will display WinForms or WPF-based GUI, but you still will have to manage the menu items in code.