Problems with edits

itsalamanca

30-11-2008 10:12:03

Hi, i am having problems using edits.
Ihave a frameListener like this:
class MiFrameListener : public ExampleFrameListener, public OIS::MouseListener, public OIS::KeyListener

I try to make some functions lika void writetext() to response the event:
eventKeyButtonPressed

So, i don't know if myFrameListener have influence in my other function.
Somebody, can tell me how use a editbox??

Altren

30-11-2008 12:47:43

Create Edit and write text in it, you don't need to have any events for typing text. If you don't have text it mean that you not calling injectKeyPressed and injectKeyRelease gui functions.

itsalamanca

30-11-2008 15:11:54

ok, i put this i my framelistener

mGUI->injectKeyPress(e);
mGUI->injectKeyRelease(e);

but, i obtend the following mistake:

16:09:18: OGRE EXCEPTION(10:MyGUIException): Code point 1 not found in font MyGUI_CoreFont.18
in MyGUI at c:\mygui\myguiengine\src\mygui_font.cpp (line 63)

????

hpcorona

01-12-2008 05:46:28

ok, i put this i my framelistener

mGUI->injectKeyPress(e);
mGUI->injectKeyRelease(e);

but, i obtend the following mistake:

16:09:18: OGRE EXCEPTION(10:MyGUIException): Code point 1 not found in font MyGUI_CoreFont.18
in MyGUI at c:\mygui\myguiengine\src\mygui_font.cpp (line 63)

????


I had the same problem...

I really dont remember how i solved it... but definitlely i remember it was something with the skin... Maybe you dont have de font file in your resources, or something like that.

Hope this helps...

itsalamanca

01-12-2008 08:22:04

ok, i search it in the files .skin, core.font, etc..., but it is difficult to solve it.
Somebody has some idea??.

hpcorona

01-12-2008 23:59:39

ok, i search it in the files .skin, core.font, etc..., but it is difficult to solve it.
Somebody has some idea??.


Can you post the ogre.log file?

itsalamanca

02-12-2008 07:15:32

thanks a lot, i solve it, i only clear my code.

bye,