Fill Editbox

For help with general CEGUI usage:
- Questions about the usage of CEGUI and its features, if not explained in the documentation.
- Problems with the CMAKE configuration or problems occuring during the build process/compilation.
- Errors or unexpected behaviour.

Moderators: CEGUI MVP, CEGUI Team

RecyclingDuck
Just popping in
Just popping in
Posts: 13
Joined: Tue May 15, 2007 20:17
Contact:

Fill Editbox

Postby RecyclingDuck » Thu Jun 07, 2007 12:21

Hey!

My wish is to fill an Editbox by some letters, that the user is typing.
I'm injecting the user input (caught by ogre - ois) to CEGUI see:

Code: Select all

bool keyPressed( const OIS::KeyEvent &e )
      {
         CEGUI::System::getSingletonPtr()->injectKeyDown(e.key);
         return true;
      }


The user is able to select an editbox, but typing some letters doesn't effect something.
Do I have to activate the Editbox in some way ?

Thanks for help ;)
- Note: I'm from Germany, please tell me if i make some mistakes - that would help me ;)

Thanks!

Rackle
CEGUI Team (Retired)
Posts: 534
Joined: Mon Jan 16, 2006 11:59
Location: Montréal

Postby Rackle » Thu Jun 07, 2007 12:59

Are you injecting every event?
injectMouseMove
injectMouseButtonDown
injectMouseButtonUp
injectKeyDown
injectChar
injectKeyUp

Have a read through http://www.ogre3d.org/wiki/index.php/Basic_Tutorial_6

RecyclingDuck
Just popping in
Just popping in
Posts: 13
Joined: Tue May 15, 2007 20:17
Contact:

Postby RecyclingDuck » Thu Jun 07, 2007 13:17

Ahh :D
I thought injectChar wouldn't be necessary.

Now it's working fine - thanks!
- Note: I'm from Germany, please tell me if i make some mistakes - that would help me ;)



Thanks!


Return to “Help”

Who is online

Users browsing this forum: No registered users and 26 guests