Why a button cannot be clicked twice?

For help with general CEGUI usage:
- Questions about the usage of CEGUI and its features, if not explained in the documentation.
- Problems with the CMAKE configuration or problems occuring during the build process/compilation.
- Errors or unexpected behaviour.

Moderators: CEGUI MVP, CEGUI Team

User avatar
Gaal
Not too shy to talk
Not too shy to talk
Posts: 28
Joined: Thu Jul 21, 2005 03:36
Location: Ô Toulouse

Why a button cannot be clicked twice?

Postby Gaal » Sun Oct 15, 2006 20:14

I noticed that a PushButton cannot be clicked twice in a row.
The first time it fires the event, but the next time it does not.
You have to click another widget before having the PushButton to react again.

It might be a bug, or at least I thing it is not a good behaviour, because this behaviour does not apply with CheckBox. You can change it : checked - unchecked - checked - etc... without clicking around!

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

Postby CrazyEddie » Mon Oct 16, 2006 05:18

It's likely that the buttons, on subsequent clicks, are getting mouse double-click and triple-click events which is inhibiting the 'normal' mechanisms of the button type widgets

To inhibit this, try passing false to: Window::wantsMultiClickEvents for the buttons. This can also be made the default by adding a property specifier in the looknfeel.

If this is not it, and you truly do have to actually deselect a button window before it can be clicked again, then this is not normal behaviour and there is likely some other issue with your app.

CE.


Return to “Help”

Who is online

Users browsing this forum: No registered users and 34 guests