I'm working on my textbox control, and can't get more than 31 characters of the user entered text. I've been changing mTextEntryLength and it's working for values 1 to 31, but any values of 32 or above still return return the first 31 characters.
I've been feeding longer strings into mStr at various points in the code, and it appears to get clipped either coming from CreateTextEntry or at the TextFromTextEntry function.
Is there another setting I need to adjust to allow for bigger strings?
Code:
mPlug->GetGUI()->CreateTextEntry(this, &mText, &mDrawRECT, mStr.Get());
void TextFromTextEntry(const char* txt)
{
mStr.Set(txt, 128);
SetDirty(false);
}
Only affects Visual Studio, XCode is working as expected.