×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Oct 2005
    Posts
    2

    Post How to use CAknFloatingPointQueryDialog?

    I try to use CAknFloatingPointQueryDialog, but didn't work right ({rAmount} is always 0.0). I think there is some problem in resource-file, but i don't what kind of resource definition i have to make for CAknFloatingPointQueryDialog-class.

    ----8<-----------------------------

    TReal rAmount;

    CAknFloatingPointQueryDialog* dlgamount = CAknFloatingPointQueryDialog::NewL(rAmount, CAknQueryDialog::ENoTone);

    if (dlgamount->ExecuteLD(R_ASK_AMOUNT))
    {
    iStrBuffer.Format(_L("Amount is : %g"), rAmount);
    iEikonEnv->InfoMsg(iStrBuffer);
    }

    ---8<------------------------------

    Resource is :

    RESOURCE DIALOG r_ask_amount
    {
    title = "example";
    buttons = R_AVKON_SOFTKEYS_OK_CANCEL;
    flags = EGeneralQueryFlags;
    items =
    {
    DLG_LINE
    {
    type = EAknCtQuery;
    id = EHelloWorld2DialogAddNewEventQuery;
    control = AVKON_DATA_QUERY
    {
    layout = EDataLayout;
    label = "Amount";
    control = EDWIN
    {
    };
    };
    }
    };
    }

    ---8<------------------------------

  2. #2
    Super Contributor
    Join Date
    Nov 2004
    Location
    Wiltshire, UK
    Posts
    3,644

    Re: How to use CAknFloatingPointQueryDialog?

    Look at the sample in the Avvkon Dialogs tech note. Your layout is wrong

    http://www.forum.nokia.com/info/sw.n..._0_en.pdf.html

  3. #3
    Registered User
    Join Date
    Oct 2005
    Posts
    2

    Re: How to use CAknFloatingPointQueryDialog?

    Thanks Paul. Now it's works.

Similar Threads

  1. Resource for CAknFloatingPointQueryDialog
    By ajsanchez in forum Symbian
    Replies: 0
    Last Post: 2005-01-26, 12:07
  2. CAknFloatingPointQueryDialog
    By didster in forum Symbian User Interface
    Replies: 1
    Last Post: 2004-10-05, 10:34
  3. CAknFloatingPointQueryDialog issues
    By Shabs in forum Symbian User Interface
    Replies: 1
    Last Post: 2004-06-28, 18:26
  4. Inheriting CAknFloatingPointQueryDialog
    By vmakinen in forum Symbian
    Replies: 0
    Last Post: 2004-04-19, 08:24
  5. correct resource control for CAknFloatingPointQueryDialog
    By dalore in forum Symbian User Interface
    Replies: 1
    Last Post: 2003-12-03, 07:06

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×