diff -r 51a74ef9ed63 -r ae94777fff8f Symbian3/SDK/Source/GUID-BD988DF9-45CA-53F3-816F-6DB81185CE40.dita --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Symbian3/SDK/Source/GUID-BD988DF9-45CA-53F3-816F-6DB81185CE40.dita Fri Jun 11 12:39:03 2010 +0100 @@ -0,0 +1,13 @@ + + + + + +Control observers

Each control may have an observer, typically another control, to which it can send events. An observer must:

A control may have one observer only, but an observer may observe more than one control.

A control sends an event to its observer using CCoeControl::ReportEventL(). The observer receives the event using MCoeControlObserver::HandleControlEventL(). Event types, which areĀ not the same as window server events, are defined by the MCoeControlObserver enum TCoeEvent.

A typical use of an observer is a compound + control being the observer for its own components. The components send events to their compound control when they receive user input and the compound control manages the interaction between them. For example a control receiving a TPointerEvent::EButton1Down event sends an MCoeControlObserver::EEventRequestFocus event to its observer. This allows the observer to move focus between its components and to update their appearance.

\ No newline at end of file