S80 Multipage Dialog

Login to reply to this topic.
Mon, 2006-10-30 13:59
Joined: 2006-10-30
Forum posts: 1
Hi i am new to symbian. Can any one tell me how to create a MultipageDialog in Symbian C++

Wed, 2006-11-22 16:14
Joined: 2005-06-08
Forum posts: 8
Re: S80 Multipage Dialog
Hi,

try the following

RESOURCE DLG_BUTTONS R_APPLICATION_BUTTONS
{
    flags = EEikButtonGroupDelayActivation;
   buttons =
   {
      DLG_BUTTON { button = CMBUT{}; },
      DLG_BUTTON { button = CMBUT{}; },
      DLG_BUTTON { button = CMBUT{}; },
      DLG_BUTTON
      {
         id=ECmdHide;
         button = CMBUT{ txt=r_dfn_hide_app; };
      }
   };
}

RESOURCE DIALOG multipage_dialog
{
    flags= EEikDialogFlagWait | EEikDialogFlagNotifyEsc | EEikDialogFlagFillScreen ;
    title= "my title";
    pages=dlgpages;
    buttons=R_APPLICATION_BUTTONS;
}



RESOURCE ARRAY dlgpages
{
    items =
    {
        PAGE{
            id = EFirstPageID;
            text = "first page";
            lines = r_first_page;
        },
        PAGE{
            id = ESecondPageID;
            text = "second page";
            lines = r_second_page;
        }
    };
}


RESOURCE ARRAY r_first_page
{
    items =
    {
        DLG_LINE
        {
       type = EEikCtLabel;
            id = page_1_controlID1;           
            control = LABEL { txt ="hello"; };
        }     
    };
}

RESOURCE ARRAY r_second_page
{
    items =
    {
    DLG_LINE
        {
            type = EEikCtLabel;
            id = page_2_controlID1;                       
            control = LABEL { txt ="world"; };
        }
    };
}

in .hrh define

enum TCommands
{
   ECmd1=1,
   ECmd2,


enum
{
    EFirstPageID = 1,
    ESecondPageID,
    page_1_controlID1,
    page_2_controlID1,
}


in .cpp use

CEikDialog *dlg = new(ELeave) CEikDialog;
dialog->ExecuteLD(MULTIPAGE_DIALOG);
Wed, 2006-11-22 16:17
Joined: 2005-06-08
Forum posts: 8
Re: S80 Multipage Dialog
Sorry,

i accedently posted incomplete stuff Sad



RESOURCE DLG_BUTTONS R_APPLICATION_BUTTONS
{
    flags = EEikButtonGroupDelayActivation;
   buttons =
   {
      DLG_BUTTON { id = ECmd1; button = CMBUT{txt="bla"}; },
      DLG_BUTTON { id = ECmd2; button = CMBUT{txt="bla"}; },
      DLG_BUTTON { id = ECmd3; button = CMBUT{txt="bla"}; },
      DLG_BUTTON { id = ECmd4; button = CMBUT{txt="bla"}; }
   };
}

RESOURCE DIALOG multipage_dialog
{
    flags= EEikDialogFlagWait | EEikDialogFlagNotifyEsc | EEikDialogFlagFillScreen ;
    title= "my title";
    pages=dlgpages;
    buttons=R_APPLICATION_BUTTONS;
}



RESOURCE ARRAY dlgpages
{
    items =
    {
        PAGE{
            id = EFirstPageID;
            text = "first page";
            lines = r_first_page;
        },
        PAGE{
            id = ESecondPageID;
            text = "second page";
            lines = r_second_page;
        }
    };
}


RESOURCE ARRAY r_first_page
{
    items =
    {
        DLG_LINE
        {
       type = EEikCtLabel;
            id = page_1_controlID1;           
            control = LABEL { txt ="hello"; };
        }     
    };
}

RESOURCE ARRAY r_second_page
{
    items =
    {
    DLG_LINE
        {
            type = EEikCtLabel;
            id = page_2_controlID1;                       
            control = LABEL { txt ="world"; };
        }
    };
}

in .hrh define

enum TCommands
{
   ECmd1=1,
   ECmd2,
   ECmd3,
   ECmd4
};

enum
{
    EFirstPageID = 1,
    ESecondPageID,
    page_1_controlID1,
    page_2_controlID1,
}


in .cpp use

CEikDialog *dlg = new(ELeave) CEikDialog;
dialog->ExecuteLD(MULTIPAGE_DIALOG);
  • Login to reply to this topic.