Using Panda3D 1.5.2 on Ubuntu 8.10 there seems to be a bug in DirectEntry with the position that cursor is drawn at.
-
Put the cursor at the start of the first line (position 0), and it appears to be at the end of the first line, you see the blinking cursor drawn at the end of the line, but it acts as if it’s at the start of the line. If you press delete it will delete the first character on the first line, if you type a letter it will appear at the start of the line, if you press right arrow the cursor will move to before the second character on the line, etc.
-
Put the cursor at the start of the second line, again it appears to be at the end of the first line.
-
Put it at the start of the third line, it appears to be at the end of the second line.
-
Start of the fourth line, it appears to be at the end of the third line.
-
And so on.
When you’re dealing with the second, third, fourth etc. line this makes a certain amount of sense. The cursor is drawn at the end of the previous character rather than at the start of the next character, and the ‘lines’ are not separated by newline characters, they’re just word-wrapped, DirectEntry behaves as if it’s all one line.
But in the case of the first line, it really doesn’t make sense, the cursor needs to be drawn at the start of the line, not the end.