×

Discussion Board

Results 1 to 1 of 1
  1. #1
    Registered User
    Join Date
    Dec 2005
    Location
    Albacete, Spain
    Posts
    380

    Problem setting a form as editable

    I have a form generated with uidesigner. The resource is pretty simple:

    Code:
    RESOURCE DIALOG r_lynx_backup_login_form_lynx_backup_login_form
    	{
    	flags = EEikDialogFlagNoDrag | EEikDialogFlagNoTitleBar | EEikDialogFlagCbaButtons | EEikDialogFlagFillAppClientRect | EEikDialogFlagNotifyEsc | EEikDialogFlagModeless;
    	buttons = R_AVKON_SOFTKEYS_OK_BACK;
    	form = r_lynx_backup_login_form_lynx_backup_login_form_form;
    	}
    RESOURCE FORM r_lynx_backup_login_form_lynx_backup_login_form_form
    	{items =
    		{
    		DLG_LINE
    			{
    			type = EEikCtEdwin;
    			prompt = STR_LynxBackupLoginFormView_3;
    			id = ELynxBackupLoginFormViewLogin;
    			control = EDWIN
    				{
    				flags = EEikEdwinNoWrap;
    				maxlength = 20;
    				default_case = EAknEditorTextCase;
    				allowed_case_modes = EAknEditorAllCaseModes;
    				numeric_keymap = EAknEditorStandardNumberModeKeymap;
    				default_input_mode = EAknEditorTextInputMode;
    				allowed_input_modes = EAknEditorTextInputMode | EAknEditorNumericInputMode | EAknEditorFullWidthTextInputMode | EAknEditorFullWidthNumericInputMode;
    				special_character_table = 0;
    				max_view_height_in_lines = 1;
    				};
    			}
    		};
    	}
    In PreLayoutDynInitL() I SetEditableL(ETrue) :

    Code:
    void CLynxBackupLoginForm::PreLayoutDynInitL()
    	{
    	// [[[ begin generated region: do not modify [Generated Contents]
    	iLogin = static_cast< CEikEdwin* >( 
    		ControlOrNull( ELynxBackupLoginFormViewLogin ) );
    		{
    		HBufC* text = StringLoader::LoadLC( R_LYNX_BACKUP_LOGIN_FORM_LOGIN );
    		iLogin->SetTextL( text );
    		CleanupStack::PopAndDestroy( text );
    		}
    	// ]]] end generated region [Generated Contents]
    	//	Initialize login field to last on user
    	if(static_cast<CLynxBackupAppUi*>(CEikonEnv::Static()->AppUi())->iUsername.Length() > 0)
    		{
    		HBufC* text2 = static_cast<CLynxBackupAppUi*>(CEikonEnv::Static()->AppUi())->iUsername.Alloc();
    		CleanupStack::PushL(text2);		//	CLEANUP
    		iLogin->SetTextL( text2 );
    		CleanupStack::PopAndDestroy( text2 );
    		}
    	TInt idebug = iLogin->IsReadOnly();   // idbebug = EFalse
    	LoadFromDataL();
    	SetEditableL(ETrue);  // To be sure to be sure
    	}
    When the form is displayed, I can't edit anything.

    I have done quite a few apps using forms and never found this problem. I have no clue what's wrong, probably a stupid mistake.
    Last edited by juannoguera; 2009-07-19 at 13:11. Reason: mistake
    ----------------------------------------------
    Every journey starts with a small step.

Similar Threads

  1. Problem in Going Back from Form to List
    By lopesrohan1988 in forum Symbian User Interface
    Replies: 2
    Last Post: 2009-07-07, 08:11
  2. form problem
    By vigneshkrish in forum Mobile Java General
    Replies: 28
    Last Post: 2009-04-15, 08:14
  3. Problem with Skin enabling - disabling and Setting List in S60
    By sauvikds in forum Symbian User Interface
    Replies: 1
    Last Post: 2008-08-22, 13:45
  4. Partly dynamically setting list problem
    By kaiten-sushi in forum Symbian User Interface
    Replies: 3
    Last Post: 2007-05-09, 16:22
  5. How can I build Setting form in my application
    By clickzika in forum Symbian
    Replies: 1
    Last Post: 2005-02-16, 13:18

Posting Permissions

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