View Single Post
Old 08-03-2017, 10:42 PM   #8
Human being with feelings
Join Date: Jan 2017
Posts: 43

Bump bump.

The method in my post above works fine in Live, but in Reaper the background of the text entry is black no matter what I set BGColor (and FGColor) in the IText to.

Does anyone have a more elegant solution for text entry?

Here's my code:
const IColor bgColor = IColor(0, 130, 130, 130);
const IColor fgColor = IColor(255, 30, 30, 30);

IText text = IText(21, &COLOR_ORANGE, font, IText::kStyleNormal, IText::kAlignCenter, 0, IText::kQualityAntiAliased, &bgColor, &fgColor);

mPlug -> GetGUI() -> CreateTextEntry(this, &text, &entryTextRect, testText);
MSK is offline   Reply With Quote