Game Development Community

Gettext() stripping chars off guiMLTextEdit control

by Dave Young · in Torque Game Engine · 02/14/2006 (11:18 am) · 3 replies

Hi, I'm working with the RPG Dialog resource, and finding that the gettext and getvalue commands for a guiMLTextEdit control are stripping the last 3 characters from the actual string. I have looked at the source code for the controls and it's a straight return with a value, I can't see any reason why this is happening.

It can be seen in the RPG Dialog resource, everytime you edit an answer or question and hit OK, it loses 3 characters from the end.

I am using TGE 1.4.

Has anyone else seen this issue?

#1
02/14/2006 (11:25 am)
Have you tried stepping through it with a debugger? It's possibly you found an off by one bug introduced in the Unicode port - if you can localize where it comes from, we can either confirm it's fixed for the next point release, or add it to the bug tracker.
#2
02/14/2006 (11:54 am)
Check this thread for a fix.
#3
02/14/2006 (12:10 pm)
No Ben, I haven't, I just echoe'd the various values as I went. I'm new to C++ so it will take a little to figure out how to step through with a debugger, if and when I do, I will post the results.