Symbian dialog box usage

Source: Internet
Author: User

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.

}

The corresponding class of the floating point request dialog box is CAknFloatingPointQueryDialog. The following code is used as an example:

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.

}

In addition to the above, there are many types of Dialog in Symbian. Since I have not analyzed them, I will not give them one by one.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.