关于在symbian listbox中添加svg图片的问题
2010-05-31 20:19:00 来源:WEB开发网iListBox->Model()->SetOwnershipType( ELbmOwnsItemArray );//这个是说list拥有item并且负责处理他们
// setup the icon array so graphics-style boxes work//设置list的图标
SetupListBoxIconsL();
// add list items
AddListBoxResourceArrayItemL( R_ATEST_LIST2_LIST_BOX_LISTBOX_ITEM1,
EListBoxAtestlist2List_iconIndex );
AddListBoxResourceArrayItemL( R_ATEST_LIST2_LIST_BOX_LISTBOX_ITEM2,
EListBoxAtestlist2List_iconIndex1 );
AddListBoxResourceArrayItemL( R_ATEST_LIST2_LIST_BOX_LISTBOX_ITEM3,
EListBoxAtestlist2List_iconIndex2 );
AddListBoxResourceArrayItemL( R_ATEST_LIST2_LIST_BOX_LISTBOX_ITEM4,
EListBoxAtestlist2List_iconIndex3 );
AddListBoxResourceArrayItemL( R_ATEST_LIST2_LIST_BOX_LISTBOX_ITEM5,
EListBoxAtestlist2List_iconIndex4 );
AddListBoxResourceArrayItemL( R_ATEST_LIST2_LIST_BOX_LISTBOX_ITEM6,
EListBoxAtestlist2List_iconIndex5 );
AddListBoxResourceArrayItemL( R_ATEST_LIST2_LIST_BOX_LISTBOX_ITEM7,
EListBoxAtestlist2List_iconIndex6 );
AddListBoxResourceArrayItemL( R_ATEST_LIST2_LIST_BOX_LISTBOX_ITEM8,
EListBoxAtestlist2List_iconIndex7 );
AddListBoxResourceArrayItemL( R_ATEST_LIST2_LIST_BOX_LISTBOX_ITEM9,
EListBoxAtestlist2List_iconIndex8 );
AddListBoxResourceArrayItemL( R_ATEST_LIST2_LIST_BOX_LISTBOX_ITEM10,
EListBoxAtestlist2List_iconIndex9 );
AddListBoxResourceArrayItemL( R_ATEST_LIST2_LIST_BOX_LISTBOX_ITEM11,
EListBoxAtestlist2List_iconIndex10 );
iListBox->SetFocus( ETrue );// 获得交点
iFocusControl = iListBox;
}
// ]]] end generated function
/**
* Handle global resource changes, such as scalable UI or skin events (override)
*/
void CATestList2ListBox::HandleResourceChange( TInt aType )
更多精彩
赞助商链接