Page 1 of 1

Spinner change notification (EventValueChanged)

Posted: Thu Dec 29, 2005 14:34
by Ben811
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

Re: Spinner change notification (EventValueChanged)

Posted: Thu Dec 29, 2005 14:54
by Ben811
I'm sorry,

the spinner EventValueChanged code works. There was an error in my code around it.

But the second problem (autorepeat) is still not solved.

It's under Linux using the SDL.

Any suggestions?

Re: Spinner change notification (EventValueChanged)

Posted: Thu Dec 29, 2005 14:54
by martignasse
hi,

for you'r first probleme, did you check if you'r getWindow method return a valid result ?

for the second, it seem's like the autoreapeat should be managed by the input library you use along with CEGUI before be available in it.

hope it help