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

from UIQ to Series 60

0 replies · 1,065 views · Started 20 July 2004

Hi
I developed an application to the UIQ 2.1 and now want to convert it to the Series 60 .
I have several questions and would be grateful for any help on either one of these questions.
(below is relevant part of RSS and CPP files ...)

1) why can't I see my menu bar ( all I see is what seems to be a default menu bar of "Options" and "Exit"😉 ?

2)why do I get a break point when trying to execute the dialog ? (the break is before the PreLayoutDynInit )

3)what is the best replacement of a CEikChoiceList in the series 60 ? (which the option to detect the choose of a specific item , and the option to see the data from an array ...) ?

Thanks a lot in advance

**** CPP file ****

CEikDialog* dialog=new(ELeave) CMyAppAboutDialog(this);
if (!dialog->ExecuteLD(R_MYAPP_ABOUT_DIALOG))
{
return;
}

void CMyAppAboutDialog::PreLayoutDynInitL()
{
label = (CEikLabel*)Control(EMyAppControlIdAbout);
}

**** RSS file ****

RESOURCE DIALOG r_myapp_about_dialog
{
flags=EEikDialogFlagWait | EEikDialogFlagNoDrag;
title="About";
buttons = r_myapp_about_buttons;
items=
{
DLG_LINE
{
type=EEikCtLabel;
id=EMyAppControlIdAbout;
control=LABEL{txt="Bla Bla Bla";};
}
};
}

RESOURCE EIK_APP_INFO
{
menubar = r_myapp_menubar;
status_pane=R_AVKON_STATUS_PANE_LAYOUT_USUAL;
cba=R_AVKON_SOFTKEYS_OPTIONS_EXIT;
}

RESOURCE MENU_BAR r_myapp_menubar
{
titles =
{
MENU_TITLE
{
menu_pane = r_myapp_about_menu;
txt = "About";
};
}

RESOURCE MENU_PANE r_myapp_about_menu
{
items=
{
MENU_ITEM
{
command = EMyAppCmdAbout;
txt = "Request Info";
}
};
}
RESOURCE DLG_BUTTONS r_myapp_about_buttons
{
buttons=
{
DLG_BUTTON
{
id = EMyAppBIdOK;
button = CMBUT {txt = "OK";};
}
};
}