Multiline Text Edit Cursor Issue
by DragonSix · in Torque Game Builder · 06/06/2008 (9:33 pm) · 6 replies
I already spoke about this issue a while ago:
www.garagegames.com/mg/forums/result.thread.php?qt=67815
The cursor is off, and it really disturb while typing.
I'm using a personal plugin that allow me to write piece of TorqueScripts inside the builder, and with a bad cursor this is really tiresome sometimes.
This is an issue that was introduced with 1.5ish TGB.
www.garagegames.com/mg/forums/result.thread.php?qt=67815
The cursor is off, and it really disturb while typing.
I'm using a personal plugin that allow me to write piece of TorqueScripts inside the builder, and with a bad cursor this is really tiresome sometimes.
This is an issue that was introduced with 1.5ish TGB.
#2
06/23/2008 (10:23 pm)
I sure noticed it :) It's really frustrating, giving those multiliners a nice amateur feel to em.
#3
07/22/2008 (1:22 pm)
Still here in the last TGB version...
#4
Change
to
07/22/2008 (1:34 pm)
There is a bug in GuiMLTextCtrl::getCursorPositionAndColor that has been reported by Kirk Longendyke in this thread for TGEA. This *may* be the issue you are seeing.Change
x += font->getStrNWidth(buff, mCursorPosition - awalk->textStart - 1);
to
x += font->getStrNWidth(buff, mCursorPosition - awalk->textStart);
#6
07/22/2008 (2:50 pm)
Great! Credits go to Kirk as he supplied the fix.
Torque Owner DragonSix