Hi, I'm Paul, but you can also call me Todd and I won't get upset.
Paul.Todd | 25 September, 2009 19:45
One of the more useful features of Avkon 3.2 and later (though like the coordinate editor, is very poorly documented) is the unit editor control, aka CAknUnitEditor. This control allows formats such as <number> <unit> to be easily entered and in conformance with the current locale.Below is an example of the editor in action. It is also very touch friendly
The control is composed of a resource structure "AVKON_UNIT_EDITOR" defined in eikon.rh and the C++ class is CAknUnitEditor which implementes the actual class that can be used in a form.
The editor consists of a number, a fraction, a range and default value and a set of units from meter, kilometer, foot, mile, metric and imperial speed. In addition a custom unit may also be specified through the C++ class when it is constructed.
Of course all this can be found in the supplied example in the UEEX sample or for it being used in the real world, look at the position accuracy and altitude fields when editing a location in the location database.
S60 |
Next |
Previous |
Comments (0) |
Trackbacks (0)