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

CAknTextQueryDialog default edwin text

1 replies · 3,993 views · Started 14 May 2003

How I can put the default text to my query dialog. Is it even possible?
I need to know is there a way to do that other that define it someway to resource file.

TBuf<20> answer;
CAknTextQueryDialog * dlg;
dlg = CAknTextQueryDialog::NewL(answer);
dlg->ExecuteLD(R_QUERY);

The string which you pass in to the dialog on construction specifies the default text. Like so:
[code:1]TBuf<20> answer = _L("Some default text");
CAknTextQueryDialog * dlg;
dlg = CAknTextQueryDialog::NewL(answer);
dlg->ExecuteLD(R_QUERY);
[/code:1]