quote:
Originally posted by OcuS
It behaves as if the Event_LstViewClicked was fired before the checkbox is really checked/unchecked...
Actually, this is exactly what happens and which is logically the correct behaviour!
When you click on a checkbox this is what happens:
1) The program detects you pressed your mouse button
2) The program grabs the position of your mouse and looks if a control is underneath it
3) If so, it set focus to that control
4) It then checks if there is some associated action with it when you click the control.
5) If so, it performs that action (in this case the action would be to toggle the checkbox)
It can't even be the other way around as the program can not magically know you want to change a checkbox before you first actually click on it...
Or to put it in another way: clicking is the action, the checkbox toggling is the reaction on it. It can't be the other way around.