Page 1 of 1

Get Gadget3D Text Cursor Position

Posted: Sat Nov 21, 2009 12:29 pm
by Violet
This is just one tiny thing which currently keeps PureBasic Applications developed with OGRE from being "market-ready": text input!

With CEGUI you can select text in StringGadget3Ds and EditorGadget3Ds as you are used from the User Interface of your Operating System. The problem is, you cannot find out where the text cursor is, so you can only append every KeyboardInkey() to the end of the current 3D Gadget Text.
It's the same with the backspace key. It's just possible to cut off the last letter of the 3D Gadget Text every time the key is pressed, because it's impossible to find out where the text cursor is.
It's unlikely, that users of a game using the current PureBasic CEGUI (with this small "problem") will get along with that more than 2 minutes. For example: if you write a text which is composed of several long sentences, at the end you discover something you want to change right in the first sentence, then you have to delete all the text after that to change it.

And I can't figure out, to get the cursor position with some kind of trick, because it's CEGUI internal: I can't access whatever holds the value.

Oh please... that would be awesome, I guess it's not a big deal to implement*, but a huge improvement. :)

*Ignoring the whole process of recompiling the PureBasic OGRE

Re: Get Gadget3D Text Cursor Position

Posted: Sat Nov 21, 2009 1:27 pm
by Fluid Byte
+1

*BUMP*

Posted: Fri Jun 17, 2011 12:09 pm
by Violet
Anything new about this?

I haven't been around here for a long time and just wanted to see if this tiny but fateful functionality has been added.