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]