[Solved] Combobox edit field

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

gams
Not too shy to talk
Not too shy to talk
Posts: 39
Joined: Sun May 24, 2015 13:23

[Solved] Combobox edit field

Postby gams » Fri Oct 23, 2015 08:05

Hi
I was trying to make combobox fire an event everytime user types characters to the combobox edit field but none of the text events seem to trigger. I tried EventTextChanged, EventTextAccepted and EventTextSelectionChanged but no avail.

is the support for this missing?

Log:

Code: Select all

23/10/2015 10:58:31 (Std)    ********************************************************************************
23/10/2015 10:58:31 (Std)    * -------- START OF ESSENTIAL SECTION TO BE POSTED ON THE FORUM       -------- *
23/10/2015 10:58:31 (Std)    ********************************************************************************
23/10/2015 10:58:31 (Std)    ---- Version: 0.8.4 (Build: Aug  8 2015 Microsoft Windows MSVC++ Great Scott! 32 bit) ----
23/10/2015 10:58:31 (Std)    ---- Renderer module is: CEGUI::OpenGLRenderer - Official OpenGL based 2nd generation renderer module.  TextureTarget support enabled via FBO extension. ----
23/10/2015 10:58:31 (Std)    ---- XML Parser module is: CEGUI::TinyXMLParser - Official tinyXML based parser module for CEGUI ----
23/10/2015 10:58:31 (Std)    ---- Image Codec module is: SILLYImageCodec - Official SILLY based image codec ----
23/10/2015 10:58:31 (Std)    ---- Scripting module is: None ----
23/10/2015 10:58:31 (Std)    ********************************************************************************
23/10/2015 10:58:31 (Std)    * -------- END OF ESSENTIAL SECTION TO BE POSTED ON THE FORUM         -------- *
23/10/2015 10:58:31 (Std)    ********************************************************************************


thanks
Last edited by gams on Fri Oct 23, 2015 13:59, edited 1 time in total.

YaronCT
CEGUI Team
Posts: 448
Joined: Fri Jun 19, 2015 12:18
Location: Kiryat-Bialik, Israel

Re: Combobox edit field

Postby YaronCT » Fri Oct 23, 2015 13:03

gams:

Code: Select all

combobox->getEditbox()->subscribeEvent( Editbox::EventTextChanged, Event::Subscriber(...) );


Make sure u subscribe to the event of the combobox's editbox, not the combobox itself!

gams
Not too shy to talk
Not too shy to talk
Posts: 39
Joined: Sun May 24, 2015 13:23

Re: Combobox edit field

Postby gams » Fri Oct 23, 2015 13:58

yaronct wrote:gams:

Code: Select all

combobox->getEditbox()->subscribeEvent( Editbox::EventTextChanged, Event::Subscriber(...) );


Make sure u subscribe to the event of the combobox's editbox, not the combobox itself!


thanks that was the problem!


Return to “Help”

Who is online

Users browsing this forum: No registered users and 10 guests