Hello,
I have some problems with updating a textfield if Logic does not process audio (Logic ist not running and input monitoring is disabled).
I am playing around with the AlgDisplay from the EEL Example. With VST3 there are no problems updating text when the DAW is not running.
It seems Logic only calls GetGUI() if there is audio to process. I call GetGui() in the ProcessDoubleReplacing function.
Which function can I use to update my textfields? Or can I modifiy the textfield?
Thanks
This is original AlgDisplay code from the EEL Example
Code:
class AlgDisplay : public IControl
{
public:
AlgDisplay(IPlugBase* pPlug, IRECT pR, IText* pText, const char* str = "")
: IControl(pPlug, pR)
{
mDisablePrompt = true;
mText = *pText;
mStr.Set(str);
}
~AlgDisplay() {}
bool Draw(IGraphics* pGraphics)
{
return pGraphics->DrawIText(&mText, mStr.Get(), &mRECT);
}
void OnMouseDown(int x, int y, IMouseMod* pMod)
{
mPlug->GetGUI()->CreateTextEntry(this, &mText, &mRECT, mStr.Get());
}
void TextFromTextEntry(const char* txt)
{
mStr.Set(txt, MAX_ALG_LENGTH);
//TODO: update alg
SetDirty(false);
}
protected:
WDL_String mStr;
};