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

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:
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);
Thanks!
MSK
MSK is offline   Reply With Quote