Can't start a new line using CAknTextQueryDialog
I'm using CAknTextQueryDialog to show an edit dialog, and on the emulator it will start a new line when typed a very long string when the first edit line is full, but it crashes on the phone just at the point of starting a new line.
The codes are here:
[CODE] CAknTextQueryDialog* dlg = CAknTextQueryDialog::NewL(tbuf);
if (dlg->ExecuteLD(R_TK_INPUT_QUERY_DIALOG_NUMERIC)){
... ...
}[/CODE]
[CODE]
RESOURCE DIALOG r_tk_input_query_dialog_numeric
{
flags = EGeneralQueryFlags;
buttons = R_AVKON_SOFTKEYS_OK_CANCEL;
items =
{
DLG_LINE
{
type = EAknCtQuery;
id = EGeneralQuery;
control = AVKON_DATA_QUERY
{
layout = EDataLayout;
control = EDWIN
{
// flags = EEikEdwinNoHorizScrolling | EEikEdwinResizable;
width = 20;
lines = 4;
maxlength = 64;
default_input_mode = EAknEditorNumericInputMode;
};
};
}
};
}[/CODE]
Any idea? Thanks!
Re: Can't start a new line using CAknTextQueryDialog
Can you get the error code from the crash, it could propably help. Anyway, you could try increasing your stack (incase you haven't done it already), as well as make sure the tbuf is smaller or equal in lenght with the maxlength.
Re: Can't start a new line using CAknTextQueryDialog
[QUOTE=symbianyucca;521823]Can you get the error code from the crash, it could propably help. Anyway, you could try increasing your stack (incase you haven't done it already), as well as make sure the tbuf is smaller or equal in lenght with the maxlength.[/QUOTE]
It was the stack size. Thank you very much.