use of the DynInitMenuPaneL to hide my Markable ListBox from some view of my application
Login to reply to this topic.
jeu, 2008-11-27 18:55
Joined: 2007-01-22
Forum posts: 45

to add a Markable ListBox to my application I add the following to my resource file

RESOURCE MENU_BAR r_main_menubar
{
titles =
{
MENU_TITLE
{
menu_pane = r_main_menu;
},
MENU_TITLE
{
menu_pane = R_AVKON_MENUPANE_MARKABLE_LIST;
}

};
}

so now I can see it on my emulator. but to override the default impelementation and make it visible in some condition of the application I use the following comand in the DynInitMenuPaneL function in the appUI

aMenuPane->SetItemDimmed(EAknListBoxMarkableList, ETrue)

but I am facing EIKCOCTL 8.

what I am suspecting is that EAknListBoxMarkableList is not the right id for R_AVKON_MENUPANE_MARKABLE_LIST.

any one have any idea? I spend the whole day today with it.

regds,


ven, 2008-11-28 02:37
Joined: 2007-01-22
Forum posts: 45

common guys say some thing... or ask me if you need some more information

ven, 2008-11-28 07:11
Joined: 2007-08-29
Forum posts: 297

Hi,

check this link

http://www.newlc.com/forum/eikcoctl-error


Thanks & Regards
Ram

Symbian OS 9.1,S60 3rd edition MR,and Carbide.C++

ven, 2008-11-28 10:20
Joined: 2007-01-22
Forum posts: 45

tanks for reply

I check the link already actually. in my case the reason I get EIKCOCTL 8. is becase I add aMenuPane->SetItemDimmed(EAknListBoxMarkableList, ETrue)

so how I can hide R_AVKON_MENUPANE_MARKABLE_LIST?

ven, 2008-11-28 10:49
Joined: 2003-12-05
Forum posts: 822

The ID in the parameter refers to a menu item in the menu pane. AFAIK, you cannot dim a menu pane, but individual menu items. You might try to remove the menu item which opens the menu pane. If I understood at all what you are aiming at...

ven, 2008-11-28 13:27
Joined: 2007-08-29
Forum posts: 297


Andreas is right.

aMenuPane->SetItemDimmed(EAknListBoxMarkableList, ETrue)

Instead of above you try like below

aMenuPane->SetItemDimmed(EMarkableList, ETrue)

where EMarkableList will be individual item of list.


Thanks & Regards
Ram

Symbian OS 9.1,S60 3rd edition MR,and Carbide.C++

sam, 2008-11-29 17:41
Joined: 2007-01-22
Forum posts: 45

for the time being I am going to make it the following way. even though it will be too much cascading. the output will be like then one on the picture.

MENU_ITEM { command = EMarkUnmark; txt = "Mark ?";
cascade = R_AVKON_MENUPANE_MARKABLE_LIST;}

Fichier attachéTaille
Untitled.jpg29.66 Ko
mar, 2009-09-08 13:15
Joined: 2009-08-05
Forum posts: 1

Shocked

How does onbe goabout Hiding the ListBox altogether,
say Show LB / Hide LB


copyright 2003-2009 NewLC SARL