Page 1 of 1

Why a button cannot be clicked twice?

Posted: Sun Oct 15, 2006 20:14
by Gaal
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!

Posted: Mon Oct 16, 2006 05:18
by CrazyEddie
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.