WEB开发网
开发学院手机开发Symbian 开发 Symbian 常用 Dialog 阅读

Symbian 常用 Dialog

 2010-02-09 03:55:00 来源:WEB开发网   
核心提示:reguest to enter a flotaing point numberCAknFixedPointQueryDialog //...CAknDurationQueryDialog //This class should be used when user is reguest to enter duratio
reguest to enter a flotaing point number

CAknFixedPointQueryDialog //...

CAknDurationQueryDialog //This class should be used when user is reguest to enter duration

CAknIpAddressQueryDialog //This class should be used when user is reguest to enter IP address,@since 2.1

CAknMultiLineDataQueryDialog //Query Dialog with data input on more than one line (2 lines at the moment)

Create using NewL methods and passing parameters as appropriate.

Attention: When deriving from this class, you must call SetDataL during

second phase construction.

CAknMultiLineIpQueryDialog //...

CAknNumberQueryDialog //This class should be used when user is reguest to enter number

CAknTextQueryDialog //This class should be used when user is reguest to enter plain text, secret text, phonenumber or PIN-code

CAknTimeQueryDialog //This class should be used when user is reguest to enter time or date

使用不同的类,资源文件会有所不同。

另外,在资源中定义EDWIN时,可指定输入发,如:

Code:

control = EDWIN

{

flags = EEikEdwinNoHorizScrolling | EEikEdwinResizable;

width = 11;

lines = 1;

maxlength = 11;

avkon_flags = EAknEditorFlagFixedCase |

EAknEditorFlagNoT9 | EAknEditorFlagSupressShiftMenu; //EAknEditorFlagSupressShiftMenu屏蔽切换输入法键

allowed_input_modes = EAknEditorNumericInputMode;

default_input_mode = EAknEditorNumericInputMode;

numeric_keymap = EAknEditorPlainNumberModeKeymap;

};

以上写法表示默认输入法为数字,并且屏蔽了输入法切换键,即不能通过输入法切换键来切换输入法。

6、编辑框

编辑框使用的类:

CEikGlobalTextEditor

头文件:eikgted.h

使用方法:

Code:

CEikGlobalTextEditor* iGKeyEd;

上一页  1 2 3 4 5 6  下一页

Tags:Symbian 常用 Dialog

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