Spinner change notification (EventValueChanged)

For help with anything that CEGUI doesn't offer straight out-of-the-box, e.g.:
- Implementation of new features, such as new Core classes, widgets, WindowRenderers, etc. ...
- Modification of any existing features for specific purposes
- Integration of CEGUI in new engines or frameworks and writing of new plugins (Renderer, Parser, ...) or modules

Moderators: CEGUI MVP, CEGUI Team

User avatar
Ben811
Just popping in
Just popping in
Posts: 14
Joined: Wed Nov 23, 2005 09:33

Spinner change notification (EventValueChanged)

Postby Ben811 » 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

User avatar
Ben811
Just popping in
Just popping in
Posts: 14
Joined: Wed Nov 23, 2005 09:33

Re: Spinner change notification (EventValueChanged)

Postby Ben811 » Thu Dec 29, 2005 14:54

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?

User avatar
martignasse
Just can't stay away
Just can't stay away
Posts: 227
Joined: Thu Apr 14, 2005 08:10
Location: Lyon, FRANCE

Re: Spinner change notification (EventValueChanged)

Postby martignasse » Thu Dec 29, 2005 14:54

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


Return to “Modifications / Integrations / Customisations”

Who is online

Users browsing this forum: No registered users and 12 guests