setting item 无法编辑

myhuochai 2008-09-18 02:59:42
我定义了两个 setting items, 都是 integer 类型的。运行后,应该显示数字的部分显示成了:None。同时,点击以后也无法编辑,又看不到什么错误,是什么原因呢?相关代码如下:


CAknSettingItem* CFoo::CreateStatusItemL( TInt aId )
{
switch ( aId )
{
case EStatusViewItems1:
return new ( ELeave ) CAknIntegerEdwinSettingItem(aId, iItem1);

case EStatusViewItems2:
return new ( ELeave ) CAknIntegerEdwinSettingItem(aId, iItem2);
}

return NULL;
}

void CFoo::EditItemL( TInt aIndex, TBool aCalledFromMenu )
{
CAknSettingItem* item = ( *SettingItemArray() )[aIndex];
CAknSettingItemList::EditItemL( aIndex, aCalledFromMenu );
item->StoreL();
}

...全文
59 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
myhuochai 2008-09-18
  • 打赏
  • 举报
回复
找到原因了!我傻了!!函数名写错了。。。CreateSettingItemL 写成 CreateStatusItemL 了。
stonesl 2008-09-18
  • 打赏
  • 举报
回复
资源文件怎么定义的呀
myhuochai 2008-09-18
  • 打赏
  • 举报
回复
问题依旧。。
stonesl 2008-09-18
  • 打赏
  • 举报
回复
void CFoo::EditItemL( TInt aIndex, TBool aCalledFromMenu )
{
CAknSettingItemList::EditItemL( aIndex, aCalledFromMenu );
( *SettingItemArray() )[aIndex]->UpdateListBoxTextL();
( *SettingItemArray() )[aIndex]->StoreL();
}

3,120

社区成员

发帖
与我相关
我的任务
社区描述
塞班系统(Symbian系统)是塞班公司为手机而设计的操作系统,它的前身是英国宝意昂公司的 EP ( Electronic Piece of cheese)操作系统。
社区管理员
  • Symbian社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧