I'm trying get my application to run in fullscreen. That means no status pane, no title pane, but I DO want the menu buttons ("Options" + "Exit", the CBA) to be visible. Can somebeody please tell me how to do it?
Firstly, what I have done so far.
The GUI architecture uses derived CAknViewAppUi, CAknView and CCoeControl (each in an own class, as Carbide with GUI support would create it).
It all runs on Symbian 9.2 (N82) in landscape mode.
There seem to be many ways to achieve "fullscreennes".
I have experimented with (all done in ConstructL of CCoeControl derivation): SetExtentToWholeScreen(), SetRect(), SetExtent(), SetCanDrawOutsideRect().
A combination of these functions results in fullscreen.
I know that I can hide the status pane, title pane and cba, but there is no need to. I draw over them.
Still, I would like the CBA to be visible.
Since my main CCoeControl is periodically drawn (the camera's viewfinder), in Draw( const TRect& aRect ) const, I tried to Draw the Cba there:
AppUi()->Cba()->DrawDeffered (DrawNow crashes).
I hoped that the Cba() would be drawn after the CCoeControl has been drawn, but that didn't help.
An example of what I want to do would be the standard Camera application - it has fullscreen with "Options" and "Exit" visible. Do I have to draw them extra as Bitmaps or using some type of DrawText, or can I make the CBA be drawn over my CCoeControl (the viewfinder)?
Or can I change the drawing order (z-buffer like)? To make first my CCoeControl be drawn, then CBA. I would probbably have to hide status pane then.
I have even tried setting the Extent and/or Rect of my CCoeControl so that it excludes the CBA buttons (which are on the right side).
The CBA buttons are then visible, but the right half of the viewfinder was not visible, as expected.
My hope was that after setting SetCanDrawOutsideRect() I would be able to draw the right half, but that was not the case - it wasn't visible.
where 0 is the area set by SetRect / SetExtent, 1 is the area I thought would be renderable if I set SetCanDrawOutsideRect(), 2 is the area of the CBA buttons.
But as mentioned, area 1 was not rendered. Note that the upper-most and lower-most 0 line covers the title / status pane.
Thanks in advance