Window class, onEnablel/1, defines

A. is executed when a window is becoming visible or is being hidden
B. when a window is being disabled or enabled this event is executed
C. this event is executed when the user switches to another window of the same application
D. when a window receives the keyboard focus this event is executed

Option: A