constructing multipage dialog

Login to reply to this topic.
Thu, 2004-12-02 08:18
Joined: 2004-08-25
Forum posts: 32
Hi all,

I would like to construct an multipage dialog. As I have seen from the documentation, it said something like setting the id "pages" in the resource file while defining dialog. But I just can't figured out how to make it works. Does anyone know the way to put the code in order to have a multipage dialog?
Thank you very much.

P.S. can I have an example code of the definition in resource for a multipage dialog? THX

Thu, 2004-12-02 10:20
Joined: 2004-05-20
Forum posts: 308
constructing multipage dialog
Its simple .Here is the sample resouece file .


Code:
RESOURCE ARRAY r_one_page
   {
  items=
         {
         //add some controls you want to show in the dialog
         DLG_LINE
         {
         }
         };
   }

RESOURCE ARRAY r_two_page
   {
  items=
         {
         PAGE
         {
         id = 0;
         text = "page1";
         lines = r_one_page;
         },
PAGE
         {
         id = 1;
         text = "page2";
         lines = r_one_page;
         }
         };
   }

   
   
RESOURCE DIALOG r_example_dialog
{
title="Clock demo dialog";
   buttons=R_EIK_BUTTONS_CANCEL_OK;
   flags=EEikDialogFlagNoDrag;
 
   pages=r_two_page;
}

Thanks

Amit

Thu, 2004-12-02 10:38
Joined: 2004-08-25
Forum posts: 32
constructing multipage dialog
Thank you very much for your help!
Mon, 2005-02-14 08:06
Joined: 2003-08-31
Forum posts: 8
constructing multipage dialog
Helped me too, thanks! That .rss example saved my day.
Somehow the S80 SDK documentation claims that the dialogs on the first page can be defined in the DIALOG structure, but it doesn't work, I get a CONE 14 panic.
Works fine when all dialog pages are defined in the ARRAY of PAGE!
Mon, 2005-02-14 14:48
Anonymous (not verified)
Forum posts: 2019
constructing multipage dialog
How does one  *dynamically* create multi-page dialogs??  It is easy to do it with the use of the resource file, but I couldn't find any examples of dynamically created ones.. Does anyone know any tutorials or code to do it?
Wed, 2005-09-07 14:07
Joined: 2004-11-05
Forum posts: 57
Re: constructing multipage dialog
Thanks a lot.

But some stange things happen:

I have a LISTBOX in my dialog. The items of the listbox is only viewed in the first page.

Any ideas?


Again, tanks a lot for your help
Thu, 2008-04-17 15:56
Joined: 2008-01-17
Forum posts: 9
Re: constructing multipage dialog

I make single-page form and all work fine. Then I make maulti-page form by changing .rss file

Forms descriptions (RESOURCE FORM ) I make from single-page form by copy-paste.

But after these changes program terminates by call ExecuteLD function of form object.
Why ?

  • Login to reply to this topic.