Header Sep

Symbian OS Tips, Tricks & Code

我的评分 用户评价
登录票选本页

January 2006

Controls example application for the P990

July 19, 2006: Example application files updated for final UIQ 3 SDK

This UIQ 3 application example shows how to use some useful controls, including color selectors, toolbars and calendars, and the MCoeControlBackground class.

Color selector (CQikColorSelector) controls are created using code or resources without using a layout manager.

  • create on view construct from resources
  • create from source code using resources
  • create using only source code
  • use user defined color palette
  • handle change of selected color to fill application background

In addition, the MCoeControlBackground class is used. This class is used to draw backgrounds for the controls and, in this example, each of the three possible color selector controls has a different background color.

There are two calendar classes used:
Calendar (CEikCalendar)

  • inherit from MEikCalendarObserver;
  • display chosen date

Gregorian Calendar (CQikGregorianCalendar):

  • inherit from MEikCalendarObserver;
  • display choosen date

This example also uses a toolbar (CQikToolbar). The user can change between two possible toolbars, as defined in resources, with each of them having different orientations.

Download example application>>

To build this project for the P990 smartphone, use the following commands:

$ bldmake bldfiles
$ abld build gcce urel
$ makesis MyControls_gcce.pkg

For more information, see the UIQ 3 beta SDK documentation at:
UIQ 3 beta SDK / UIQ Developer Library / UIQ Migration Quick Guide / 5 UI Configurations

Also see the P990 Developers' Guidelines>>

More information in the UIQ 3 beta SDK:
» UIQ 3 SDK » UIQ Developer Library » UIQ How-To Guides » Controls » Color Selector

» UIQ 3 SDK » UIQ Developer Library » UIQ How-To Guides » Controls » Calendar

» UIQ 3 SDK » UIQ Developer Library » UIQ How-To Guides » Controls » Gregorian Calendar

我的评分 用户评价
登录票选本页