Categories: Symbian C++ | UI | S60 | Code Examples | How To
This page was last modified 18:04, 24 March 2008.
How to handle events in custom controls
From Forum Nokia Wiki
| ID | 0xA0007171 | Creation date | March 23, 2008 |
| Platform | S60 3rd, S60 3rd FP1 | Tested on devices | N73, N95 8Gb |
| Category | Symbian C++ | Subcategory | UI |
| Keywords: Custom Controls |
Overview
The original article is in Russian. You can find it here.
This example demonstrates how to use container controls, how to handle events and how to use custom controls in the dialogs.
Source code of this project: Image:Cc.zip.
CSuperControl
It is a container control. It consists of two objects: CSmileControl and CSliderGroup. Method SizeChanged() calculates size and position of these embedded parts. Depending on the sizes, the embedded parts are displayed from top to bottom or from left to right. This control supports events handling - events are passed to the embedded control CSliderGroup. This control also displays the background of the current theme.
CSmileControl
This non-focusing control doesn't supports events handling. It's just displays the smile, considering coefficients of the deformation (iDeltaX, iDeltaY).
CSliderGroup
It is a container control. It consists of two sliders for defining two values. This control supports events handling. There are two possible result of event: focus changed or value of the slider changed.
CSimpleSlider
This simple control is used for displaying value ( dX or dY ) and for changing this value.
| Related Discussions | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Call RunL without Tel event | Bill_Murray | General Symbian C++ | 6 | 2006-04-07 21:19 |
| Synchronizing custom data | vtulai | OMA DM/DS/CP | 1 | 2004-06-04 11:30 |
| EAknListBoxMultiselectionList | hanymt | General Symbian C++ | 0 | 2006-11-15 10:14 |
| How to capture joystick center button? | gauravgandhi80 | General Symbian C++ | 1 | 2004-12-29 07:01 |
| Hanlding events | Sukrit | General Symbian C++ | 5 | 2004-07-23 04:04 |

