QEdwinEx

The QEdwinEx application demonstrates the implementation of the control factory interface MQikControlFactory to construct a new control derived control from CEikEdwin. The new control CEdwinExNumericEdwin will differ from a standard Edwin in two ways:
InputCapabilities() will be overridden to constrain FEP entry to positive western integers and navigation keys.OfferKeyEventL() will be overridden to limit key entry to numbers 0 - 9 and navigation keys.
The QEdwinEx application contains a single view which contains one standard CEikEdwin and two CEdwinExNumericEdwin controls.
Construction of the CEdwinExNumericEdwin controls will be done via:
MQikControlFactory::CreateByTypeL().The control will be created and any default flags will be set. The control will then be passed back to the framework to be fully constructed from resource.MQikControlFactory::ConstructCustomControlL(). This interface provides full control over the construction of a custom control. For instance we may need to set the container window for the control, or create a control stand in (CQikControlStandIn) if the control is not edit in place.
Class summary
CEdwinExApplication is the entry point to the application.
CEdwinExDocument represents the document in the application.
CEdwinExAppUi is responsible for creating the view.
CEdwinExView presents a standard CEikEdwin control and two CEdwinExNumericEdwin controls.
CEdwinExNumericEdwin derives from CEikEdwin and overrides both InputCapabilities() and OfferKeyEventL() to constrain input to the control to positive western integers and navigation keys.
Usage
First, run bldmake from the projects group directory where the bld.inf file is located:
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,
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.1 2006-12-28
Minor documentation changes.
Version 1.0 2006-12-13
First release.
Download:
QEdwinEx
You need to be a registered member of the UIQ Developer Community and logged in to be able to download this file.