How to hide and display menu bar (cba button)???

Login to reply to this topic.
Fri, 2005-08-05 07:59
Joined: 2005-07-10
Forum posts: 68
Hello,

I am working on a app which needs full screen view. I must include a menu bar haveing cba button "Options  Exit".
But menu bar should be hidden and if user presses any of the soft key, it should pop up the menu pane.
Is there any method which can be used to hide and display menu bar?
   

Fri, 2005-08-05 09:12
Joined: 2005-03-04
Forum posts: 176
Re: How to hide and display menu bar (cba button)???
I'm looking for it also  Grin! But a easy way (not a propper way), is to duplicate your view and change only inside the ConstructL the resource for the BaseConstructL...
You use the same container in both views... I know it's ugly but easy at the first step...
But i hope to hear about better solutions...  Wink

Bye;
CG
Fri, 2005-08-05 09:51
Joined: 2004-07-12
Forum posts: 90
Re: How to hide and display menu bar (cba button)???
Hi guys!
There's Cba() function in CAknAppUi, with that you get the instance of CEikButtonGroupContainer which is derived from CCoeControl (iirc). So you can use SetVisible( EFalse ) and redraw!1 Cheezy Should work. Didn't test this.

edit: There's also MakeVisible( TBool ) -function.. try these

savaaZ

For quality Symbian idling, join #symbian at irc.freenode.net

Fri, 2005-08-05 10:39
Joined: 2005-03-04
Forum posts: 176
Re: How to hide and display menu bar (cba button)???
Sure it works, but.. I've a option & back Button
Code:
RESOURCE DIALOG r_folder_query
{
flags=EGeneralQueryFlags;
buttons = R_AVKON_OPTIONS_OK_BACK;
items =
...
but i only want to hide the options button, not the complete cba.
How to manipulate the basic R_AVKON_XXX-keys? Is there maybe a bitmask to set/unset or something like this?

Thanks in advance;
CG
Fri, 2005-08-05 12:13
Joined: 2005-07-10
Forum posts: 68
Re: How to hide and display menu bar (cba button)???
Thaks a lot savaaZ  Shocked.
Mon, 2007-06-25 15:13
Joined: 2007-06-21
Forum posts: 48
Re: How to hide and display menu bar (cba button)???

hi

i want to make my view to be full screen i used applicationrect() it is working but the cba buttons are not visible so i used

cba()->MakeVisisble(1);

but i don't no how to use and where to keep this command can u help me out .

thanks

Tue, 2007-06-26 20:31
Joined: 2007-06-20
Forum posts: 93
Re: How to hide and display menu bar (cba button)???

hi scorpio,
ofcourse u use it in ur AppUi class.


Thanks & Regards,
C Singh

Wed, 2007-06-27 05:23
Joined: 2007-06-21
Forum posts: 48
Re: How to hide and display menu bar (cba button)???

thanks for replying

it is crashing giving kern-exec 3 program closed

thanks

Thu, 2007-06-28 12:08
Joined: 2007-06-21
Forum posts: 48
Re: How to hide and display menu bar (cba button)???

thanks 2 all

my problem is solved

  • Login to reply to this topic.