Hi everyone,
I wonder that there is no SetTextL(...) in CAknTextQueryDialog. Then how can I set a predefined text in the dialog's input box?? Any alternative?
Thank you.
Printable View
Hi everyone,
I wonder that there is no SetTextL(...) in CAknTextQueryDialog. Then how can I set a predefined text in the dialog's input box?? Any alternative?
Thank you.
Have you tried putting that predefined text into the descriptor you are passing to CAknTextQueryDialog?
[QUOTE=wizard_hu_;852645]Have you tried putting that predefined text into the descriptor you are passing to CAknTextQueryDialog?[/QUOTE]
Yes I have tried. I don't know if I have missed something, but I tried. I got setTitleL(...) but there was no setTextL(....). I have to do it from code, not from resource.
Thank you.
I can not interpret your post, if it works or not.
For me it works, simply copied the resource from [url]http://www.developer.nokia.com/Community/Wiki/Querying_Strings[/url], and put[CODE] TBuf<30> buf=_L("Hello");
CAknTextQueryDialog::NewL(buf)->ExecuteLD(R_ASK_NAME_DIALOG);[/CODE]in HandleCommandL. 'Hello' appears properly, at least in the S60 3rd FP1 emulator.
Great !!!
Thank you.
And I am such a fool..