newlc.com
Articles Only
Forum Only
Community
World-Wide Web
Home
News
Tutorials
Reviews
Downloads
Professional Services
Forums
Newsletter
Blog
About us
Last forum posts
Home
::
Forums
::
Development
::
User Interface
::
Nokia Series 80
User login
Username:
*
Password:
*
Create new account
Request new password
Featured pages
Configure your PC for Symbian development
Getting started with Symbian development
Symbian OS Error Codes
Common products UIDs
Nokia S60 SDK
Featured Software
NlMakesis
Y-Browser
Y-Tasks
Active users (last 30 days)
User
Score
rbrunner
67
eric
61
alh
60
praveen.nitdgp@...
42
Andreas
35
more
Feeds
More feeds...
S80 Multipage Dialog
Login
to reply to this topic.
Mon, 2006-10-30 13:59
praveen.zen.d
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++
Login
or
register
to post in forums
Wed, 2006-11-22 16:14
tom
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
tom
Joined: 2005-06-08
Forum posts: 8
Re: S80 Multipage Dialog
Sorry,
i accedently posted incomplete stuff
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.
Forum posts: 8
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);
Forum posts: 8
i accedently posted incomplete stuff
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);