WEB开发网
开发学院手机开发Symbian 开发 Symbian 对话框用法 阅读

Symbian 对话框用法

 2010-03-05 06:11:00 来源:WEB开发网   
核心提示:EFloatingPointLayout, EIpLayout, EFixedPointLayout, EDataLayoutAllowEmptyInput, ELocationLayout }文本请求对话框对应的类是:CAknTextQueryDialog。下面代码示例之:// The descriptor used
EFloatingPointLayout,
 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;

上一页  5 6 7 8 9 10 11 12 13 14  下一页

Tags:Symbian 对话框 用法

编辑录入:coldstar [复制链接] [打 印]
赞助商链接