multi dialog problem

Login to reply to this topic.
Tue, 2007-01-30 09:43
Joined: 2004-09-15
Forum posts: 25
hi there,
i have some problems to draw multidialog to the screen.

the dialog appear and can be written, but when it exceeds its maximum character, appears some information "maximum number of characters reached" and after that, the program is error.

below is my code
in .rss:
Code:
RESOURCE DIALOG r_user_pwd
{
title="LOGIN";
buttons=R_EIK_BUTTONS_CANCEL_OK;
flags=EEikDialogFlagWait;

items=
{
DLG_LINE
{
type = EEikCtGlobalTextEditor;
prompt = "Username:";
id = EUserName;
control = GTXTED
{
width=100;
height=20;
numlines=1;
textlimit=10;
};
},       
DLG_LINE
{
type = EEikCtSecretEd; //Control factory id.
prompt = "Password:";
id = ESecretEditor;
control = SECRETED
{
num_letters=8;
}; //Secret editor resource.
}       
};
}

in view.cpp:
Code:
//Allocate memory for my custom dialog.
CEikDialog* dialog = new(ELeave) CEikDialog();

//Launch dialog.
dialog->ExecuteLD(R_USER_PWD);

any clue why is that? how to solve it?

Thanks
Rx-lee
  • Login to reply to this topic.