Using WebViews · iPlug2/iPlug2 Wiki · GitHub
Skip to content

Using WebViews

Oli Larkin edited this page Dec 1, 2024 · 4 revisions

How to use a WebView to implement your UI

Using a WebView for your plug-in UI can be an appealing option but it's not without its challenges.

I recommend that you do a lot of research and experimenting before deciding to go down this path.

Here are a few videos to check out:

iPlug2's WebView interface is defined in the IPlug/Extras/IWebView.h header.

If you are going to use a WebView for your whole UI (not using IGraphics), you will want to use the IWebViewEditorDelegate which inherits from IWebView.. This is done by setting the preprocessor macros NO_IGRAPHICS and WEBVIEW_EDITOR_DELEGATE like this and removing any IGraphics code from your project. It might be easier to start by cloning an example.

Check out the following examples to see different approaches for doing your WebUI:

How to use a WebView to implement part of your IGraphics UI

To use web content in part of your iPlug2 IGraphics UI, you can use the IWebViewControl which inherits from IWebView.

Check out the IPlugOSCEditor example to see how that works.

Clone this wiki locally