Spinner change notification (EventValueChanged)
Posted: Thu Dec 29, 2005 14:34
Hi there,
I try to use a spinner and have two questions according to it.
The first one is how do I notice when the spinner changes its value? I tried it with:
CEGUI::WindowManager::getSingleton().getWindow(
(CEGUI::utf8*) "SpinnerName" ) ->
subscribeEvent(CEGUI::Spinner::EventValueChanged,
CEGUI::Event::Subscriber(&RTV_Win_Transform::onXPos, this));
But I did not get any events???
I want to get informaed when a button is clicked or the edit field is changed via mouse or keybord.
The second problem I have found in another post, but with no solution. The mousebutton autorepeat setting does not work, but it is set to true in the Spinner::initialize method.
Any help here?
Thanks,
Benjamin
I try to use a spinner and have two questions according to it.
The first one is how do I notice when the spinner changes its value? I tried it with:
CEGUI::WindowManager::getSingleton().getWindow(
(CEGUI::utf8*) "SpinnerName" ) ->
subscribeEvent(CEGUI::Spinner::EventValueChanged,
CEGUI::Event::Subscriber(&RTV_Win_Transform::onXPos, this));
But I did not get any events???
I want to get informaed when a button is clicked or the edit field is changed via mouse or keybord.
The second problem I have found in another post, but with no solution. The mousebutton autorepeat setting does not work, but it is set to true in the Spinner::initialize method.
Any help here?
Thanks,
Benjamin