DynInitMenuPaneL not getting called
| Tue, 2008-03-04 14:07 | |
|
Hi All , I am working on UIQ3.1 and OS 9.2 .I want to add dynamic menu item in my view.But DynInitMenuPaneL void CTestView::DynInitMenuPaneL(TInt aResourceId, CEikMenuPane *aMenuPane) if(aResourceId == R_Test_View_MENU ) RESOURCE MENU_BAR r_test_view_menubar I tried to debug the code also but control is not coming in this method.I am implementing this mehod in my view. I trid in both way as creating the command in .rss itself and do dimmed in view and other way create command in view itself. I have used the same thing in Series 60 successfully many times . Is there some different way in UIQ?? Please tell me where I am doing wrong?? Any comments would be a great help for me as it is very urgent. "To the question of your life , you are the only Answer. To the problems of your life,you are the only Solution". |
|






Forum posts: 1241
Uh, no, anything with CEikMenuPane in it (note the "Eik") is almost certainly wrong in the case of UIQ3. That's still there to support "legacy" code, but all new stuff should use CQikCommand.
I think the way to go is using CQikCommandManager. There is a sample from SE that shows how to add custom commands programmatically:
MyFontExplorer
René Brunner
Forum posts: 155
Hi rbrunner,
Thanks a lot for your support. My problem got resolved.I used this method of CQikCommand SetInvisible(TBool aValue);
Thanks once again.
Regards,
Isha
"To the question of your life , you are the only Answer. To the problems of your life,you are the only Solution".
Forum posts: 15
Hi Isha,
See the attached sample application, It is possible to add menu items dynamically in uiq3.1 and also we can handle the click event of those menu items....
Br
Pankaj
Pankaj Dubey
Forum posts: 155
Hi dubepankaj1980
Thanks a lot for your concern. But I have already resolved my problem.
Thanks once again.
Regards,
Isha
"To the question of your life , you are the only Answer. To the problems of your life,you are the only Solution".