×
Namespaces

Variants
Actions

如何隐去等待对话框中的齿轮图

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

在等待对话框中我们一般都会看到一个齿轮动籣图标,你也可以定义你自己的图标来取代它。参考SDK中的note例子就可以了解。 在avkon.mbg中有很多图标的id,如EMbmAvkonQgn_note_emptyEMbmAvkonQgn_note_empty_mask,怎么使用它们才能显示一个空白图标呢? 下面的资源示例展示了如何构造一个空白图标的等待对话框:

RESOURCE DIALOG r_aknexnote_wait_note_softkey_cancel
{
flags = EAknWaitNoteFlags;
buttons = R_AVKON_SOFTKEYS_CANCEL;
items =
{
DLG_LINE
{
type = EAknCtNote;
id = EAknExNoteCtrlIdWaitNote;
control= AVKON_NOTE
{
layout = EWaitLayout;
singular_label = qtn_aknexnote_wait_prompt;
 
imagefile = AVKON_BMPFILE_NAME;
imageid = EMbmAvkonQgn_note_empty;
imagemask = EMbmAvkonQgn_note_empty_mask;
 
animation = R_QGN_GRAF_WAIT_BAR_ANIM;
};
}
};
}
This page was last modified on 27 August 2012, at 05:19.
100 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.

×