COCKOS
CONFEDERATED FORUMS
Cockos : REAPER : NINJAM : Forums
Forum Home : Register : FAQ : Members List : Search :

Go Back   Cockos Incorporated Forums > Other Software Discussion > WDL users forum

Reply
 
Thread Tools Display Modes
Old 11-08-2017, 03:09 PM   #1
Bobflip
Human being with feelings
 
Join Date: Nov 2016
Posts: 341
Default CreateTextEntry/TextFromTextEntry limited to 32 characters in VS2017?

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.

Last edited by Bobflip; 11-08-2017 at 03:15 PM.
Bobflip is offline   Reply With Quote
Old 11-08-2017, 05:23 PM   #2
Youlean
Human being with feelings
 
Youlean's Avatar
 
Join Date: May 2015
Location: Serbia
Posts: 654
Default

I am checking this too. I will fix that in couple of days...
__________________
Website | Facebook Page | IPlug-Youlean
Youlean is offline   Reply With Quote
Old 11-08-2017, 05:24 PM   #3
Youlean
Human being with feelings
 
Youlean's Avatar
 
Join Date: May 2015
Location: Serbia
Posts: 654
Default

For now change max parameter length macro i iplugbase I think...
__________________
Website | Facebook Page | IPlug-Youlean
Youlean is offline   Reply With Quote
Old 11-08-2017, 06:23 PM   #4
Bobflip
Human being with feelings
 
Join Date: Nov 2016
Posts: 341
Default

Ahhh, nice one, thanks! That fix seems to have nailed it for now. Was in IGraphics.h, #define MAX_PARAM_LEN 32
Bobflip is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 05:28 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.