×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Regular Contributor
    Join Date
    Dec 2008
    Posts
    52

    [moved] Button problem

    hi all,
    I am facing a problem about dialog.
    I have a resource as follows:

    RESOURCE DIALOG r_dialog_warning
    {
    flags = EAknWarningNoteFlags | EEikDialogFlagWait;
    buttons =R_AVKON_SOFTKEYS_OK_EMPTY;
    items =
    {
    DLG_LINE
    {
    type = EAknCtNote;
    id = EGeneralNote;
    control = AVKON_NOTE
    {
    layout = EGeneralLayout;
    animation = R_QGN_NOTE_WARNING_ANIM;
    };
    }
    };
    }

    I have executed that by the following code:

    CAknNoteDialog* dialog = new (ELeave) CAknNoteDialog(CAknNoteDialog::EConfirmationTone,
    CAknNoteDialog::ENoTimeout);
    dialog->SetTextL( aMessage );
    dialog->ExecuteDlgLD(R_DIALOG_WARNING);

    This gives me a dialog which have only one button called "OK".
    Now the problem is if i press any key of the keypad then the dialog disappears. But i want that without the ok softkey no key will not work.
    Is there any solution about it please give and i will be very grateful to him/her.
    BR,
    Shahid

  2. #2
    Nokia Developer Champion
    Join Date
    Oct 2007
    Location
    જુનાગઢ - India
    Posts
    3,034

    Re: Button problem

    The right section to post your query is here.
    http://discussion.forum.nokia.com/fo...splay.php?f=30

    Anyway this is the right behaviour of CAknNoteDialog. You can either use CAknMessageQueryDialog or create a class inherited from the base class and override the offerkeyeventL function.

  3. #3
    Nokia Developer Moderator
    Join Date
    Sep 2004
    Location
    Tampere, Finland
    Posts
    11,355

    Re: Button problem

    Quote Originally Posted by savaj View Post
    The right section to post your query is here.
    http://discussion.forum.nokia.com/fo...splay.php?f=30
    Don't bother about that, just have a look at this: http://discussion.forum.nokia.com/fo...&starteronly=1
    Shahid pays me to move his posts to the right location :)
    -- Lucian

    If you are not yet a DVLUP member it is time to correct that mistake :) Click here to join: http://www.dvlup.com/lucian/Invite

Similar Threads

  1. [moved] installing ActivePerl problem
    By sid_diu in forum Symbian Tools & SDKs
    Replies: 4
    Last Post: 2009-07-03, 14:57
  2. Modules required :)
    By neil.young in forum Symbian
    Replies: 20
    Last Post: 2009-06-07, 11:35
  3. [moved] On Device Debug Problem
    By gailu in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 6
    Last Post: 2009-02-13, 16:28
  4. Command button problem with Nokia9300 Communicator
    By karlina_nisa in forum Mobile Java General
    Replies: 3
    Last Post: 2008-12-04, 23:37
  5. problem in display an image button on canvas(Background image)
    By mramin05 in forum Mobile Java Media (Graphics & Sounds)
    Replies: 3
    Last Post: 2008-11-12, 04:51

Posting Permissions

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