×
Namespaces

Variants
Actions

S60平台2版和3版UI中图标和字体API的不同

From Nokia Developer Wiki
Jump to: navigation, search
Article Metadata

兼容于
平台:
Symbian

文章
r60600 在 15 Dec 2007 创建
最后由 hamishwillee 在 07 May 2013 编辑

一.图标

2版:

_LIT(KMbmPath, "z:\\system\\apps\\multiviews\\aMbm.mbm");
CArrayPtr< CGulIcon >* icons = new ( ELeave ) CAknIconArray(1);
CFbsBitmap* bitmap = iEikonEnv->CreateBitmapL( KMbmPath, 0 );
CleanupStack::PushL( bitmap );
CFbsBitmap* mask = iEikonEnv->CreateBitmapL( KMbmPath, 1 );
CleanupStack::PushL( mask );
icons->AppendL( CGulIcon::NewL( bitmap, mask) );
CleanupStack::Pop(2);

3版:

_LIT(KMbmPath, "z:\\resource\\apps\\aMbm.mbm");
CArrayPtr< CGulIcon >* icons = new ( ELeave ) CAknIconArray(1);
CGulIcon* aIcon[1];
aIcon[1] = CEikonEnv::Static()->CreateIconL(KMbmPath,0,1);
CleanupStack::PushL( aIcon[1] );
icons->AppendL( aIcon[1] );
CleanupStack::Pop();


二.字体

2版:

const CFont* font = LatinBold12();

3版:

const CFont* font = AknLayoutUtils::FontFromId( EAknLogicalFontSecondaryFont );
This page was last modified on 7 May 2013, at 23:59.
64 page views in the last 30 days.

Was this page helpful?

Your feedback about this content is important. Let us know what you think.

 

Thank you!

We appreciate your feedback.

×