如何更改“等待”中的图像?使用 Symbian 的对话框
我尝试将等待对话框的图像(图标)从“齿轮”图标更改为其他图标,但我失败了,尽管我遵循了书中的很多文章和示例:
RESOURCE DIALOG r_progressdlg_container_wait_dialog1
{
flags = EAknWaitNoteFlags;
buttons = R_AVKON_SOFTKEYS_CANCEL;
items =
{
DLG_LINE
{
id = EProgressdlgContainerViewWaitDialog1;
type = EAknCtNote;
control = AVKON_NOTE
{
layout = EWaitLayout;
singular_label = STR_progressdlgContainerView_10;
animation = R_QGN_GRAF_WAIT_BAR_ANIM;
};
},
DLG_LINE
{
id = EProgressdlgContainerViewWaitDialog1;
type=EEikCtImage;
control = IMAGE
{
horiz_align=EEikLabelAlignHRight;
vert_align=EEikLabelAlignVTop;
bmpfile = "\\resource\\apps\\progressdlg.mbm";
bmpid = EMbmProgressdlgList_icon;
bmpmask = EMbmProgressdlgList_icon_mask;
extension=0;
};
}
};
}
这是我根据您支持的信息更新的代码,但是, 对话框仍然显示默认图标“Gear”,那么代码有什么问题吗?
我正在使用 Carbide.C++ 2.7、S60 5th Ed SDK、在 Nokia E7 (Symbian^3) 上进行测试)
I tried to change the image (icon) of the wait dialog from the "Gear" icon to a different one but i failed though I follow a lot of articles and examples in books:
RESOURCE DIALOG r_progressdlg_container_wait_dialog1
{
flags = EAknWaitNoteFlags;
buttons = R_AVKON_SOFTKEYS_CANCEL;
items =
{
DLG_LINE
{
id = EProgressdlgContainerViewWaitDialog1;
type = EAknCtNote;
control = AVKON_NOTE
{
layout = EWaitLayout;
singular_label = STR_progressdlgContainerView_10;
animation = R_QGN_GRAF_WAIT_BAR_ANIM;
};
},
DLG_LINE
{
id = EProgressdlgContainerViewWaitDialog1;
type=EEikCtImage;
control = IMAGE
{
horiz_align=EEikLabelAlignHRight;
vert_align=EEikLabelAlignVTop;
bmpfile = "\\resource\\apps\\progressdlg.mbm";
bmpid = EMbmProgressdlgList_icon;
bmpmask = EMbmProgressdlgList_icon_mask;
extension=0;
};
}
};
}
here is my updated code based on your supported information but,
The dialog still shows the default icon "Gear", So what is wrong in code ?
I'm using Carbide.C++ 2.7, S60 5th Ed SDK, Testing on Nokia E7 (Symbian^3)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以像这样替换图像:
Note 示例应用程序有许多在不同对话框中替换图像的示例。在 S60 第 5 版 SDK 上,您可以在以下位置找到它:
您的 .mbm 或索引也可能存在问题,因此请首先尝试使用 avkon2.mbm。
You can replace the image a bit like this:
The Note example application has lots of examples of replaced images in different dialogs. On the S60 5th edition SDK, you'll find it under:
There could also be a problem with your .mbm or indices, so try first with avkon2.mbm.
在我看来,您发布的代码适用于进度条动画,而不是图标。我猜你需要类似的东西
或者只是在代码中设置它?
Looks to me like the code you have posted applies to the progress bar animation, rather than the icon. I would guess you need something like
or just set it in code?