problem with CAknNumberQueryDialog , Need Help

Login to reply to this topic.
Fri, 2005-03-04 17:46
Joined: 2005-03-04
Forum posts: 2
I run this

Quote
TInt newPage = 0;
CAknNumberQueryDialog* dlg = CAknNumberQueryDialog::NewL(newPage,
CAknQueryDialog::ENoTone);
dlg->PrepareLC(R_DIALOG_NUMBER);
dlg->SetMinimumAndMaximum(1, 100);
if (dlg->RunLD())
{
...
}

and this is my RESOURCE

Quote
RESOURCE DIALOG r_dialog_number
    {
    flags = EGeneralQueryFlags;
    buttons = R_AVKON_SOFTKEYS_OK_CANCEL;
    items =
        {
        DLG_LINE
            {
            type = EAknCtQuery;
            id = EGeneralQuery;
            control = AVKON_DATA_QUERY
                {
                layout = ENumberLayout;
                label = "";
                control = FLPTED
                    {
          maxlength = 9;
                    default = 0;
                    };
                };
            }
        };
    }

when i run this application on epoc , it's crash when the dialog open

help please ,

Sat, 2005-07-23 08:33
Joined: 2005-04-09
Forum posts: 29
Re: problem with CAknNumberQueryDialog , Need Help
Probably you solved the problem already,
but for the people who will see this topic,
you should use
Code:
layout = EFloatingPointLayout;

instead of
Code:
layout = ENumberLayout;
  • Login to reply to this topic.