Symbian Developer Library

SYMBIAN OS V6.1 EDITION FOR C++

[Index] [Glossary] [Previous] [Next]



How to dynamically change status pane layout

To change the status pane layout, use SwitchLayoutL() with the id of your required layout resource as a parameter. The layout resource id must exist in either the status pane central resource structures or in the application resource structures.

If your application changes the status pane layout and is in the foreground, it must subsequently adjust its main window area so that it fits with the new size of the status pane. Adjust the application’s main window area by calling SetRect(appUi->ClientRect()) on the application’s top level control. You can either do this directly, or in a callback from the status pane that is handled by MEikStatusPaneObserver::HandleStausPaneSizeChange().