×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Mar 2007
    Posts
    15

    Problem in creating multi-page dialog

    Hi,
    I am creating multi-page dialog box. At build time it is not giving any problem.
    But at run time I am getting User::Panic() Error E32USER-CBase:21.

    code in Rss file

    RESOURCE DIALOG r_multipage_form
    {
    flags = EEikDialogFlagNoDrag | EEikDialogFlagFillAppClientRect |
    EEikDialogFlagNoTitleBar | EEikDialogFlagNoBorder |
    EEikDialogFlagCbaButtons;
    buttons = R_AVKON_SOFTKEYS_OPTIONS_BACK;
    pages = r_multipage_form_pages;
    }

    RESOURCE ARRAY r_multipage_form_pages
    {
    items =
    {
    PAGE
    {
    id = EAknExFormPageCtrlIdPage01;
    text = qtn_multipage_form_label_page1;
    form = r_multipage_form_text_field_form;
    },
    PAGE
    {
    id = EAknExFormPageCtrlIdPage02;
    text = qtn_multipage_form_label_page2;
    form = r_aknexform_text_number_field_form;
    }
    };
    }
    RESOURCE FORM r_multipage_form_text_field_form
    {
    flags = EEikFormUseDoubleSpacedFormat;
    items =
    {
    DLG_LINE
    {
    type = EEikCtEdwin;
    prompt = "Text";
    id = EAknExFormDlgCtrlIdEdwin11;
    itemflags = EEikDlgItemTakesEnterKey |
    EEikDlgItemOfferAllHotKeys;
    control = EDWIN
    {
    flags = EEikEdwinNoHorizScrolling |
    EEikEdwinResizable;
    width = 6;
    lines = 3;
    maxlength = 256;
    max_view_height_in_lines = 5;
    base_line_delta = 21;

    };
    tooltip = qtn_multipage_hint_text_edwin;
    }
    };
    }
    RESOURCE FORM r_aknexform_text_number_field_form
    {
    flags = EEikFormUseDoubleSpacedFormat;
    items =
    {
    DLG_LINE
    {
    type = EEikCtRichTextEditor;
    prompt = "Rich text";
    id = EAknExFormDlgCtrlIdEdwin13;
    itemflags = EEikDlgItemTakesEnterKey;
    control = RTXTED
    {
    width = 10;
    height = 17;
    textlimit = 256;
    flags = KMultiLineExpandingEditorFlags;
    max_view_height_in_lines = 3;


    };
    tooltip = qtn_multipage_hint_text_edwin;
    }
    };
    }


    I have declared CAknDialog* dlg; variable in TestAppView.h class.

    and creating object cpp file:
    dlg = new (ELeave) CAknDialog();
    dlg->ExecuteLD(R_MULTIPAGE_FORM);

    This is present in my Test.hrh file

    enum TTestIds
    {
    ECommand1 = 0x6001, // start value must not be 0
    ECommand2,
    EAknExFormPageCtrlIdPage01,
    EAknExFormPageCtrlIdPage02,
    EAknExFormDlgCtrlIdEdwin11,
    EAknExFormDlgCtrlIdEdwin13
    };

    Can any body let me know why I am getting this exception?

  2. #2
    Registered User
    Join Date
    Apr 2003
    Posts
    3

    Talking Re: Problem in creating multi-page dialog

    Set AknExFormPageCtrlIdPage01=0 and EAknExFormPageCtrlIdPage02=1 and things should work fine

Similar Threads

  1. S60 APN dialog problem after network interuption
    By rputhli in forum Mobile Java Networking & Messaging & Security
    Replies: 2
    Last Post: 2006-09-29, 15:55
  2. multipage dialog navigation problem
    By imzadi_il in forum Symbian
    Replies: 4
    Last Post: 2006-09-05, 12:39
  3. problem in multifield dialog
    By santosh shetty in forum Symbian User Interface
    Replies: 3
    Last Post: 2006-07-24, 16:04
  4. findbox problem with dialog?
    By palak_shah_23 in forum Symbian User Interface
    Replies: 6
    Last Post: 2006-07-14, 02:32
  5. resource dialog problem
    By plmanikandan in forum Symbian User Interface
    Replies: 1
    Last Post: 2005-02-16, 06:33

Posting Permissions

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