2009-12-16 118 views
0

我正在創建一個S60應用程序,其中包含5個左右項目的列表框的主對話框。與LISTBOX的對話框應用程序

但我不斷收到一條消息:「應用程序app1關閉」,當試圖在模擬器上運行應用程序。

這是我的資源文件(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"; } 

     }; 
} 

我究竟做錯了什麼?

回答

1

您正在經歷一場恐慌。你應該enable extended panic code看看你正在得到什麼恐慌,然後參考system panic reference documentation看看它是什麼意思。

在這種特殊情況下,至少您的列表框項目格式不正確。 EAknCtSingleGraphicListBox枚舉值對應於CAknSingleGraphicStyleListBoxits documentation指出

列表項字符串格式爲: 「0 \ tTextLabel \ T1 \ T2」,其中0,1,2是指數的圖標排列

你項目文本缺少這些選項卡分隔符。

相關問題