You Are Here:

Community: Wiki

This page was last modified on 25 September 2009, at 19:43.

How to handle events in custom controls

From Forum Nokia Wiki

Reviewer Approved   
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.


Image:CompoundSmileCtrls.png Image:CompoundSmileCtrls2.PNG

Source code of this project: File: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 Wiki Articles

No related wiki articles found

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia 
RDF Facets: qdcZidentifierQSxhttpE3aE2fE2fwikiE2eforumE2enokiaE2ecomE2findeE78E2ephpE2fPortingE5fBlackBerryE5fStormE5fapplicationsE5fandE5fservicesE5ftoE5fS60E5f5thE5fE45ditionX qdcZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qdcZtypeQUqfntypeZCommunityContentQ qdcZtypeQUqfntypeZE52esourceQ qdcZtypeQUqfntypeZWebpageQ qdcZtypeQUqfntypeZWikiContentQ qdcZtypeQUqmarsZManagedE52esourceQ qdcZtypeQUqwebZInformationE52esourceQ qdcZtypeQUqwebZPageQ qdcZtypeQUqwebZE52esourceQ qdcZtypeQUqrdfsZE52esourceQ qfnZtopicQUqfnTopicZseriesE5f60Q qfnZtypeQUqfntypeZCommunityContentQ qfnZtypeQUqfntypeZE52esourceQ qfnZtypeQUqfntypeZWebpageQ qfnZtypeQUqfntypeZWikiContentQ qfnZuserE5ftagQSxs60X qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX qrdfZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qrdfZtypeQUqfntypeZCommunityContentQ qrdfZtypeQUqfntypeZE52esourceQ qrdfZtypeQUqfntypeZWebpageQ qrdfZtypeQUqfntypeZWikiContentQ qrdfZtypeQUqmarsZManagedE52esourceQ qrdfZtypeQUqwebZInformationE52esourceQ qrdfZtypeQUqwebZPageQ qrdfZtypeQUqwebZE52esourceQ qrdfZtypeQUqrdfsZE52esourceQ