Thanks for the great controls.
I noticed a flaw:
On a controls that you can click (like the OptionButton, CheckBox, CommandButton) a double click is not handled correctly.
Do a few double clicks rapidly on the same control, then in that process hold down the mouse button.
Something like that:
Down
Up
Down
Up
Down
Up
Down
Now take a look at the control's appearance. You will see that it displays a normal hover state, but it should be in a down state.
I think this is because you don't handle double clicks correctly. This is a known problem, and some people handle it by calling a MouseDown event when a DoubleClick event occurs. And some people even eat the DoubleClick event in their subclasser.
Thank you.
Double click
Re: Double click
I'll have a look.
Crunching for Fab36_Folding-Division at Folding@Home. Join Fab36/Fab30! - Folding@Home and BOINC
Boycott DRM! Boycott HDCP!
Boycott DRM! Boycott HDCP!
Re: Double click
I did some tests and noticed something odd which probably is related to the problem you describe.
On Vista, buttons have that animation when they are clicked. They don't switch immediately between hovered and pushed state, but fade between both states. There is a difference how the native button (and this of VB6) and my button handle the case where you push the button again while the fade animation from pushed to hovered state is not finished yet. A native button seems to abort the animation and switches back to pushed state immediately. My button doesn't do this, in fact it seems to swallow the mouse-down.
Why this is so, I have no clue so far. I've deactivated any custom message processing my button is doing, but the behavior is still the same.
On Vista, buttons have that animation when they are clicked. They don't switch immediately between hovered and pushed state, but fade between both states. There is a difference how the native button (and this of VB6) and my button handle the case where you push the button again while the fade animation from pushed to hovered state is not finished yet. A native button seems to abort the animation and switches back to pushed state immediately. My button doesn't do this, in fact it seems to swallow the mouse-down.
Why this is so, I have no clue so far. I've deactivated any custom message processing my button is doing, but the behavior is still the same.
Crunching for Fab36_Folding-Division at Folding@Home. Join Fab36/Fab30! - Folding@Home and BOINC
Boycott DRM! Boycott HDCP!
Boycott DRM! Boycott HDCP!