Symbian 对话框用法
2010-03-05 06:11:00 来源:WEB开发网核心提示:EFloatingPointLayout, EIpLayout, EFixedPointLayout, EDataLayoutAllowEmptyInput, ELocationLayout }文本请求对话框对应的类是:CAknTextQueryDialog。下面代码示例之:// The descriptor used
EFloatingPointLayout,
EIpLayout, EFixedPointLayout, EDataLayoutAllowEmptyInput, ELocationLayout
}
EIpLayout, EFixedPointLayout, EDataLayoutAllowEmptyInput, ELocationLayout
}
文本请求对话框对应的类是:CAknTextQueryDialog。下面代码示例之:
// The descriptor used for the editor
TBuf<128> text;
// The descriptor contained the prompt text for the query. The prompt // text can also be defined in the
resource structure of the query
TBuf<128> prompt(_L("Enter data:"));
// create dialog instance
CAknTextQueryDialog* dlg = new( ELeave ) CAknTextQueryDialog( text, prompt );
// Prepares the dialog, constructing it from the specified resource
dlg->PrepareLC( R_DEMO_DATA_QUERY );
// Sets the maximum length of the text editor
dlg->SetMaxLength(10);
// Launch the dialog
if (dlg->RunLD())
{
// ok pressed, text is the descriptor containing the entered text // in the editor.
}
数字请求对话框
RESOURCE DIALOG r_aknexquery_number_layout
{
flags = EGeneralQueryFlags;
更多精彩
赞助商链接