| 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): |
Menu item command IDs and dialog item ID values of 0 will cause problems which may be hard to identify and debug.
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.
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.
| 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 |