Header Sep
Symbian OS Tips, Tricks & Code
Score
Login to rate page

November 2005
Working with rich text: setting zoom levels, adding and removing pictures

[Back]

The Symbian OS v7.0 API contains a very useful class for simultaneously displaying text and pictures. It is the CEikRichEditor class. This is a flexible container that allows efficient managing of its content.

This example shows only some of its wide functionality. You can find more examples about using and formatting text in the Sony Ericsson UIQ 2.1 SDK.

Download example application>>

This example shows how to:

  • inset a picture at the current cursor position
  • remove all the pictures at the same time
  • display a dialog for setting zoom level and responding to a chosen zoom value
  • keep your pictures after zooming with the same size as before
  • how to swap setting between size in twips and in pixels

To build the example for the P900 or P910 smartphone:

$ bldmake bldfiles
$ abld build thumb urel
$ makesis TextControl.pkg

 

 

Score
Login to rate page