我正在创建一个S60应用程序,它将有一个包含5个左右项的列表框的主对话框。
但是当我试图在模拟器上运行应用程序时,我总是收到一条消息:"application app1 closed“。
这是我的资源文件(app1.rss)内容:
RESOURCE DIALOG r_dialog
{
flags=EAknDialogSelectionList;
buttons=R_AVKON_SOFTKEYS_OPTIONS_EXIT;
items=
{
DLG_LINE
{
id=EPowerSMSDlg1Label;
type=EAknCtSingleGraphicListBox;
control= LISTBOX
{
flags = EAknListBoxSelectionList;
array_id=array0;
};
},
DLG_LINE
{
itemflags = EEikDlgItemNonFocusing;
id = EFindControl;
type = EAknCtSelectionListFixedFind;
}
};
}
RESOURCE ARRAY array0
{
items=
{
LBUF { txt="Events Log"; }
};
}我做错了什么?
发布于 2009-12-17 17:05:43
你正在经历一场恐慌。您应该使用enable extended panic code查看您遇到的是哪种死机,然后参考system panic reference documentation了解它的含义。
在这种情况下,至少您的列表框项目格式不正确。EAknCtSingleGraphicListBox枚举值对应于CAknSingleGraphicStyleListBox类和its documentation状态
列表项字符串格式:"0\tTextLabel\t1\t2“,其中0,1,2是图标数组的索引
您的项目文本缺少这些制表符分隔符。
https://stackoverflow.com/questions/1917590
复制相似问题