Symbian 对话框用法
2010-03-05 06:11:00 来源:WEB开发网核心提示:if ( dlg->ExecuteLD(R_AKNEXQUERY_CONFIRMATION_QUERY, msg))//这个就是上文说的ExecuteLD(),它将调用PrepareLC(TInt aResourceId)和RunLD(),Symbian 对话框用法(8),//PrepareLC(TInt aRe
if ( dlg->ExecuteLD(R_AKNEXQUERY_CONFIRMATION_QUERY, msg))
//这个就是上文说的ExecuteLD(),它将调用PrepareLC(TInt aResourceId)和RunLD()。
//PrepareLC(TInt aResourceId)和RunLD()这两个函数的调用的在我列举的默认工程About Dialog中已有说明
{
// yes/ok pressed
}
这个对话框应该是我们用在确认删除时的样子。
2. 数据请求对话框
文本请求对话框
RESOURCE DIALOG r_demo_data_query
{
flags = EGeneralQueryFlags;
buttons = R_AVKON_SOFTKEYS_OK_CANCEL;
items =
{
DLG_LINE
{
type = EAknCtQuery;
id = EGeneralQuery;
control = AVKON_DATA_QUERY
{
layout = EDataLayout;
label = ""; // prompt text
control = EDWIN
{
width = 5;
lines = 1;
maxlength = 15;
};
};
}
};
}
还有很多的系统内置布局
enum | { EDataLayout = 1, EConfirmationQueryLayout, ECodeLayout, ETimeLayout, []
更多精彩赞助商链接
热点阅读最新推荐
飞鹰联盟成员网站 Copyright © 2003-2010 CnCms.Com. All Rights Reserved 京ICP备10000768号
|