Discussion Board
-
Getting the text entered in a TEXT BOX
2004-08-13, 11:01
#1
Registered User
I have created a Dialog in resource file for text box to enter some
text in it as,
RESOURCE DIALOG r_sockets_dialog_connect
{
flags = EGeneralQueryFlags;
buttons = R_AVKON_SOFTKEYS_OK_CANCEL;
items =
{
DLG_LINE
{
type = EAknCtMultilineQuery;
id = EMultilineFirstLine;
control = AVKON_DATA_QUERY
{
layout = EMultiDataFirstEdwin;
label = "Login Name";
control = EDWIN
{
flags = EEikEdwinNoHorizScrolling | EEikEdwinResizable;
width = 25;
lines = 1;
maxlength = 20;
};
};
},
DLG_LINE
{
type = EAknCtMultilineQuery;
id = EMultilineSecondLine;
control = AVKON_DATA_QUERY
{
layout = EMultiDataSecondSecEd;
label = "Password";
control = SECRETED
{
num_letters = 8;
};
};
}
};
}
I called the textbox in appui.cpp under HandleCommandL() as
case ECommand1:
{
TBuf<30> login;
TBuf<30> password CAknMultiLineDataQueryDialog* dlg =
CAknMultiLineDataQueryDialog::NewL(login, password);
if (! dlg->ExecuteLD(R_SOCKETS_DIALOG_CONNECT))
{
return;
}
}
break;
I want to know how to display the text that is entered in login and password textboxes.
That is how to print that the login name & password.
Please help me in doing that.
Urs,
PL.Ramanathan.
Last edited by ramanathan1; 2004-08-13 at 11:38.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules