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
Spinner change notification (EventValueChanged)
Moderators: CEGUI MVP, CEGUI Team
Re: Spinner change notification (EventValueChanged)
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?
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?
- martignasse
- Just can't stay away
- Posts: 227
- Joined: Thu Apr 14, 2005 08:10
- Location: Lyon, FRANCE
Re: Spinner change notification (EventValueChanged)
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
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
Return to “Modifications / Integrations / Customisations”
Who is online
Users browsing this forum: Bing [Bot] and 7 guests