Read-only archive of the All About Symbian forum (2001–2013) · About this archive

Integer Editor

0 replies · 1,701 views · Started 17 October 2007

Hi...

I am creating a program to display two text boxes in a dialog.

I got some example programs and from that i collected the resource coding.

And this is the code which displays two text boxes as i was expecting,

RESOURCE DIALOG r_npro_multi_line_layout
{
flags = EGeneralQueryFlags;
buttons = R_AVKON_SOFTKEYS_OK_CANCEL;
items =
{
DLG_LINE
{
type = EAknCtMultilineQuery;
id = EMultilineFirstLine;
control = AVKON_DATA_QUERY
{

layout = EMultiDataFirstDateEd;
label = STRING_r_npro_date_label_text;
control = DATE_EDITOR
{
minDate = DATE
{
year = NPRO_DATE_EDITOR_MIN_DATE;
};
maxDate = DATE
{
year = NPRO_DATE_EDITOR_MAX_DATE;
};
flags = NPRO_DATE_EDITOR_FLAGS;
};
};
},
DLG_LINE
{
type = EAknCtMultilineQuery;
id = EMultilineSecondLine;
control = AVKON_DATA_QUERY
{

layout = EMultiDataSecondDurEd;
label = STRING_r_npro_dura_label_text;
control = DURATION_EDITOR
{
minDuration = DURATION
{
};
maxDuration = DURATION
{
seconds = NPRO_DURATION_EDITOR_MAX_SECOND;
};
flags = NPRO_DURATION_EDITOR_FLAGS;
};
};
}
};
}

But i want to convert this to integer editor...

Can anyone please help me.....

I have also tried Numerical editor examples, but it is not getting executed properly.

Please help me to convert the code..