Archived:Hiding status and control panes using Symbian C++
Article Metadata
Compatibility
S60 2nd Edition and FP1, FP2, FP3
S60 3rd Edition and FP1
Article
Overview
Hiding status and control panes
Description
It is possible to hide the status and control panes to create a full-screen application.
Solution
The easiest way to switch an application to full screen is to call
SetExtentToWholeScreen();
on a (CCoeControl-derived) window-owning control. This will set the window size to cover the entire screen, and applications can now draw over the area occupied by status and control panes.
However, it is also possible to hide the panes explicitly if required.
To hide the status pane:
CEikStatusPane* statusPane =
CEikonEnv::Static()->AppUiFactory()->StatusPane();
statusPane->MakeVisible(EFalse);
An alternative way is to specify an empty layout for the status pane in the application resource file:
RESOURCE EIK_APP_INFO
{
...
status_pane = R_AVKON_STATUS_PANE_LAYOUT_EMPTY;
...
}
To hide the control pane:
CEikButtonGroupContainer* cba = CEikButtonGroupContainer::Current();
cba->MakeVisible( EFalse );


(no comments yet)