×
Namespaces

Variants
Actions

Useful Control Environment Functions

From Nokia Developer Wiki
Jump to: navigation, search
Article Metadata
Compatibility
Platform(s):
Symbian
Article
Created: vvsnaresh (15 Apr 2007)
Last edited: hamishwillee (31 Jul 2012)

CCoeCOntrol usage for drawing provides some very useful functions for free that enable you to perform a wide variety of tasks-ranging from querying screen devices to employing resource files for handling localized descriptor strings. The control environment member variable of CCoeControl,iCoeEnv is particularly valuable.Some of those functions functions this provides are as follows:


  • AppUi()
    • Obtains a handle to the application AppUi, as type CCoeAppUiBase
  • FsSession()
    • Obtains a handle to a File Server Session
  • WsSession()
    • Obtains a handle to the application's Windows Server session.
  • Normal Font()
    • Obtains a handle to the Normal Font of the system
  • ScreenDevice()
    • Obtains a handle to the screen device
  • ReadResource()
    • Reads a descriptor resource into a descriptor variable
  • AllocReadResourceL()
    • Reads general resource into a descriptor for later conversion into true class type--for example, a User Interface Component declared in a resource file
  • SimulateKeyEventL()
    • Simulates key presses and can aid debugging.


--

This page was last modified on 31 July 2012, at 12:12.
26 page views in the last 30 days.