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

Symbian 对话框用法

 2010-03-05 06:11:00 来源:WEB开发网   
核心提示:id = EGeneralQuery;control = AVKON_DATA_QUERY{layout = EFloatingPointLayout;label = "Enter value :";control = FLPTED{maxlength=10;min=0;max=100;defaul

id = EGeneralQuery;

control = AVKON_DATA_QUERY

{

layout = EFloatingPointLayout;

label = "Enter value :";

control = FLPTED

{

maxlength=10;

min=0;

max=100;

default=0;

};

};

}

};

}

STRUCT FLPTED

{

WORD maxlength=18;

DOUBLE min=-9.9e99;

DOUBLE max=9.9e99;

DOUBLE default=0; // if !(min<=default<=max), default = min.

}

浮点数请求对话框对应的类是:CAknFloatingPointQueryDialog。下面代码示例之:

TReal value = 2.12345;

// create dialog instance; value is a TReal reference that is used for // the editor

CAknFloatingPointQueryDialog* dlg =new (ELeave) CAknFloatingPointQueryDialog (value);

// launch the dialog with resource R_DEMO_FLOATING_QUERY

if (dlg->ExecuteLD( R_DEMO_FLOATING_QUERY ))

{

// ok pressed, value is the entered floating point number in the // editor.

}

除了以上这些以外 Symbian还有很多类型的Dialog 由于我还没有分析 就不在此一一举例

上一页  9 10 11 12 13 14 

Tags:Symbian 对话框 用法

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