QDynamicCtl

The QDynamicCtl application demonstrates the dynamic construction and destruction of commands and controls within ViewActivatedL() and ViewDeactivated(). Although not recommended for all application development, in certain circumstances this may help to reduce memory consumption.

The QDynamicCtl application contains a single view which contains a CEikEdwin control which is constructed from resource and a CEikLabel control which is created in code and added to the container. Both controls as contained within one line captioned building blocks.

The command list for the view contains a single command to close the application. This command list is dynamically added and removed.

Class summary

CDynamicCtlApplication is the entry point to the application.

CDynamicCtlDocument represents the document in the application.

CDynamicCtlAppUi is responsible for creating the view.

CDynamicCtlView presents dynamically constructed and destructed controls and command list.

Usage

First, run bldmake from the projects group directory where the bld.inf file is located:

> bldmake bldfiles

This creates a batch file, called abld.bat, which you use in the next step. To build the project, you call abld build which will build the project for all default targets in both release and debug variants. To build for a particular target and variant, use abld build target-name variant, for example,

> abld build winscw udeb

builds the project for the debug variant of WINSCW only. To run it, choose the application name from the Launcher.

UI configuration

This example supports the reference UI Configurations that are supported in the UIQ 3 SDK. For development purposes, UiqEnv allows to change the UI Configuration in the emulator in order to develop and test the application with varying phone styles.

Changes in this version

Version 1.0 2007-01-12

First release.

Download:  QDynamicCtl

sys_warning

You need to be a registered member of the UIQ Developer Community and logged in to be able to download this file.

  83.64 Kb  (Last update: 2007-01-23)

«« Back

UIQ 3 SDK documentation

Quick links

More developer resources