Hi to All,
I have never worked on UI and i want to create a user interface through which a user can enter server name, usreid and passward,
and i want to open a new interface when i press its menu option.
I have gone through several documents and examples i would not be able to enter my menu items in option menu.
Please tell me what steps should i perform.
Thanks
Forum posts: 80
You need to create a resource for getting the server name in the .Rss file.
// An Example of Text Input resource //
RESOURCE DIALOG r_servername_query
{
flags = EGeneralQueryFlags;
buttons = R_AVKON_SOFTKEYS_OK_CANCEL;
items =
{
DLG_LINE
{
type = EAknCtQuery;
id = EGeneralQuery;
control = AVKON_DATA_QUERY
{
layout = EDataLayout;
label = "Enter Server Name";
control = EDWIN
{
lines = 1;
maxlength =256 ;
};
};
}
};
}
// Now execute the dialog //
TBuf<256> ServerName;
CAknTextQueryDialog* dlg =new( ELeave ) CAknTextQueryDialog( ServerName, CAknQueryDialog::ENoTone );
if(dlg->ExecuteLD( R_SERVERNAME_QUERY ))
{
// User pressed OK ..
// Do Something
}
else
{
// User Pressed Cancel //
}
Vasant Patel.
Sr. Software Engineer.
S60 2nd Ed., S60 3rd Ed., Win32.
Forum posts: 73
Thanks a lot for your reply i am trying to do this with your reference and will get back with the result.
Thanks