×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Aug 2008
    Posts
    8

    Unhappy 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:
    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;
    					};
    				};
    			}
    		};
    	}

    Any idea? Thanks!

  2. #2
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,169

    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.

  3. #3
    Registered User
    Join Date
    Aug 2008
    Posts
    8

    Thumbs up Re: Can't start a new line using CAknTextQueryDialog

    Quote Originally Posted by symbianyucca View Post
    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.
    It was the stack size. Thank you very much.

Similar Threads

  1. Problems with stdint.h and inttypes.h
    By hispano84 in forum Open C/C++
    Replies: 9
    Last Post: 2009-03-17, 22:38
  2. Error while making sis file
    By lalitjadiya in forum Symbian
    Replies: 9
    Last Post: 2008-05-20, 17:18
  3. My BuilderX (with S60 SDK 2.1.NET MS version) cannot build ARMI UREL
    By danielvidonyi@hotmail.com in forum Symbian Tools & SDKs
    Replies: 1
    Last Post: 2006-05-04, 21:30
  4. Carbide.c++ Express don't want build HelloWorld
    By azarov-it in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 7
    Last Post: 2006-04-09, 11:00
  5. Start the own app from command line in emulator
    By vsuontam in forum Symbian Tools & SDKs
    Replies: 0
    Last Post: 2005-01-11, 10:56

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×