Community: Wiki

你在这里: You Are Here: Olet tässä: Vous êtes ici: Sie befinden sich hier: Tu sei qui: 現在のページ: Você está aqui: Вы здесь: Usted está aquí:
This page was last modified 08:41, 14 October 2008.

TSS000199 - Avoid reserved IDs in resource file enumerations

From Forum Nokia Wiki



ID TSS000199 Creation date April 7, 2005, updated October 14, 2008
Platform S60 (all) Devices
Category Symbian C++ Subcategory UI, UI Components


Keywords (APIs, classes, methods, functions):


Overview

Menu item command IDs and dialog item ID values of 0 will cause problems which may be hard to identify and debug.


Detailed description

Menu item (RESOURCE MENU_ITEM) command IDs and dialog item (RESOURCE DLG_LINE) will cause problems which may be hard to identify and debug if 0 is used as the ID value.


Solution

Always use a non-zero value for MENU_ITEM command IDs, because 0 is reserved for the EEikCmdCanceled command.

Similarly, a dialog's item (DLG_LINE) IDs must be non-zero. Dialog items with a zero ID will result in "Eikon-Dialog 3" panic, where 3 is listed as EEikDialogPanicFocusableLineWithIdZero.

Typically, applications define resource ID values as enumerations and a common mistake is to begin the enumeration from 0 (default), which leads to these hard-to-identify problems.

Related Discussions

Thread Thread Starter Forum Replies Last Post
can i use more than one resource file in an app? GeKI General Symbian C++ 6 2005-10-20 12:30
problem installing sis file lucidness General Symbian C++ 8 2006-04-20 18:51
Changing application icon problem mynick1000 General Symbian C++ 6 2008-11-20 11:48
throws error on target device?????? giridharn General Symbian C++ 1 2004-12-08 05:22
Adding Menu pane to the form Saritha Reddy Symbian User Interface 13 2008-03-17 14:07

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditFurlTechnocratiMagnoliaTwitter  Share this page Share this page Invite a friend Invite a friend
E-mail Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us Regional websites: Chinese Japanese © 2008 Nokia