Creating userinterface

Login to reply to this topic.
Sat, 2007-07-21 09:58
Joined: 2006-11-22
Forum posts: 73

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


Tue, 2007-07-24 06:23
Joined: 2006-04-03
Forum posts: 80
Re: Creating userinterface

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.

Wed, 2007-07-25 10:06
Joined: 2006-11-22
Forum posts: 73
Re: Creating userinterface

Thanks a lot for your reply i am trying to do this with your reference and will get back with the result.

Thanks

  • Login to reply to this topic.