[fixed] Minor CGUISpinBox issue

You discovered a bug in the engine, and you are sure that it is not a problem of your code? Just post it in here. Please read the bug posting guidelines first.
Post Reply
ceyron
Posts: 63
Joined: Tue Mar 03, 2009 5:10 pm
Location: Bucuresti, România

[fixed] Minor CGUISpinBox issue

Post by ceyron »

There is no EGET_SPINBOX_CHANGED event sent when enter is pressed in a spinbox like one would expect. It can be easily added by changing line 218 in CGUISpinBox.cpp from

Code: Select all

if ( event.GUIEvent.EventType == EGET_EDITBOX_CHANGED )
to

Code: Select all

if ( event.GUIEvent.EventType == EGET_EDITBOX_CHANGED  || event.GUIEvent.EventType == EGET_EDITBOX_ENTER )
Image
bitplane
Admin
Posts: 3204
Joined: Mon Mar 28, 2005 3:45 am
Location: England
Contact:

Post by bitplane »

No problem, added to trunk so will be part of Irrlicht 1.8. Thanks for reporting :)
Submit bugs/patches to the tracker!
Need help right now? Visit the chat room
Post Reply