how can I set "folder" dimmed in Menu Bar ???

Login to reply to this topic.
Tue, 2004-11-16 08:52
Joined: 2004-08-16
Forum posts: 98
As we know, in UIQ application in menu bar there may be the basic folder system or the extended folder system. Now I don't want it to be available in my application, then I can set it dimmed in the resource file.
But if I don't want to do like that, instead I want to set it dimmed by writing some code in my program, so how can I do ?
After you read the following you will understand my puzzle:
RESOURCE MENU_BAR r_exappsendas_menubar
    {
    titles=
        {
        MENU_TITLE
   {
   menu_pane = r_exappsendas_app_menu;
   txt = STRING_r_exappsendas_app_menu;
   },
  MENU_TITLE
   {
   menu_pane = r_exappsendas_edit_menu;
   txt = STRING_r_exappsendas_edit_menu;
   },
  MENU_TITLE
   {
   menu_pane = r_exappsendas_folders_menu;  
   DECLARE_CATEGORY_MENU_TITLE;
   }
  };
    }
 
then I can set "edit" menu title dimmed after executing the following code:
CEikMenuBar* menuBar = ((CEikonEnv*)iCoeEnv)->AppUiFactory()->MenuBar();
menuBar->SetTitleDimmed(1,ETrue);
But how can I set "category menu title" dimmed ?If I use menuBar->SetTitleDimmed(2,ETrue);
Then the system will throw out a panic: EIKCOCTL 25 (Index out of range in CColumnListBoxData)
So who can help me to solve the problem ?

Thu, 2004-11-18 05:50
Joined: 2004-08-16
Forum posts: 98
how can I set "folder" dimmed in Menu Bar ???
Is anyone here ?
Write down your ideas please !
Thu, 2004-11-18 09:45
Joined: 2004-05-24
Forum posts: 981
how can I set "folder" dimmed in Menu Bar ???
Quote from: Flyingsnow
Is anyone here ?
Write down your ideas please !

I would start checking if i have there as many lines in my listbox as i expect. In your case you can check this using CTitleArray

pirosl

Thu, 2004-11-25 04:31
Joined: 2004-08-16
Forum posts: 98
how can I set "folder" dimmed in Menu Bar ???
Quote from: pirosl
Quote from: Flyingsnow
Is anyone here ?
Write down your ideas please !

I would start checking if i have there as many lines in my listbox as i expect. In your case you can check this using CTitleArray
---------------------------------------------------------------------------
I have used your method and get CTitleArray from CEikMenuBar.
But it shows me there are two titles ( not including the folder title).
Give me more ideas !
Thanks muchly!
  • Login to reply to this topic.