Read-only archive of the All About Symbian forum (2001–2013) · About this archive

Dialog with choice box

2 replies · 2,020 views · Started 28 July 2003

Dear all,

I am writing an application containing a dialog with a choice box.
I would like to know how to set the items present in the choice box just
before visualizing it and not in the resource file.

Regards,
Marco

Dear all,

I am writing an application containing a dialog with a choice box.
I would like to know how to set the items present in the choice box just
before visualizing it and not in the resource file.

Regards,
Marco

i am also developing the application similar to what you queried so please if you get any info please let me know it as i am also developing the application of presenting the checkboxes without its presence in rewource file. also if u get details about how to display the option buttons in the similar way please give me the details which would be helpful to me ....

v v s kumar :icon14:

vvskum2k04 wrote:i am also developing the application similar to what you queried so please if you get any info please let me know it as i am also developing the application of presenting the checkboxes without its presence in rewource file. also if u get details about how to display the option buttons in the similar way please give me the details which would be helpful to me ....

v v s kumar :icon14:

typical RTFM case, please try to search some SDK to get information.

CEikDialog has method PreLayoutDynInit or PostLayoutDynInitL which are documented in SDK. In them you can dynamicly set up any items in dialog.

Ex.

void CAboutDialog::PostLayoutDynInitL()
{
// Get a pointer to the control.
CEikTextListBox* myTextListBox = STATIC_CAST(CEikTextListBox*, Control(EAppListBox));
// Use it
myTextListBox->.......

}

Also you need to define EAppListBox in resources files.

Regards, Kutovoy.