Feb 052009
 

When you use a plugin from Waves or other “big name” you will be able to left click or double click to be able to type in settings. IPlug requires you use the right mouse button only. I wanted to be able to edit VST plugin parameters with the left mouse button so I added two new methods to ICaptionControl.
Here are the declarations in IPlug/IControl.h

    virtual void OnMouseDown(int x, int y, IMouseMod* pMod);
    virtual void OnMouseDblClick(int x, int y, IMouseMod* pMod);

Implementations go in IPlug/IControl.cpp

void ICaptionControl::OnMouseDown(int x, int y, IMouseMod* pMod)
{
    if ((pMod->L) || (pMod->R))
    {
        PromptUserInput();
        return;
    }
}

void ICaptionControl::OnMouseDblClick(int x, int y, IMouseMod* pMod)
{
    PromptUserInput();
}

With these modifications you will be able to right click or left click on any ICaptionControl to be able to type directly into it.

VST plugin development is fun!

  One Response to “IPlug: Allow caption edit with left mouse button”

  1. Excellent! Any suggestions on how to make the box disapear without having to go inside the box and hit “return” . Would be nice to display the value, but when you click on another knob, the box disapears. Kinda like the waves VEQ Series. Awesome blog!!

Sorry, the comment form is closed at this time.