×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Regular Contributor
    Join Date
    Aug 2005
    Posts
    87

    text color in EDWIN in FORM

    Hi guys,
    I'v got some strange problem with text colors for EDWIN in FORM.

    the problem is: EDWIN text color does not equal to current theme color - it's always black( highlighted or not ), but this problem only when FORM in not editable mode, in editable mode everything Ok (edwin text color = edwin caption color = theme color )
    ( Nokia E61, default nokia theme ),

    the o9ther controls, number editor or list - work Ok.

    here is my res:
    Code:
    RESOURCE DIALOG r_header_dlg
    {
    	flags = EEikDialogFlagNoDrag | EEikDialogFlagFillAppClientRect |
    			EEikDialogFlagNoTitleBar | EEikDialogFlagNoBorder |
    			EEikDialogFlagCbaButtons;
    	buttons = R_AVKON_SOFTKEYS_OPTIONS_BACK;
    	form = r_header_form;
    }
    
    RESOURCE FORM r_header_form
    {
    	flags = EEikFormUseDoubleSpacedFormat;
    	items =
    	{
    		DLG_LINE
    		{
    			type = EEikCtEdwin;
    			prompt = qtn_header_line0;
    			id = enFormCtrlId0;
    			itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys;
    			control = EDWIN
    			{
    				flags = EEikEdwinNoHorizScrolling | EEikEdwinResizable;
    				width = KFormEdwinWidth;
    				lines = KFormEdwinLines;
    				maxlength = KFormEdwinMaxLength;
    				// added to limit expanding in forms. 
    				// If you want full screen use 5 here
    				max_view_height_in_lines = 5; 
    				// if you have the line above, you must have this.  
    				// It's calculable from LAF
    				base_line_delta = 21; 
    			};
    		},
    		DLG_LINE
    		{
    			type = EEikCtEdwin;
    			prompt = qtn_header_line1;
    			id = enFormCtrlId1;
    			itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys;
    			control = EDWIN
    			{
    				flags = EEikEdwinNoHorizScrolling | EEikEdwinResizable;
    				width = KFormEdwinWidth;
    				lines = KFormEdwinLines;
    				maxlength = KFormEdwinMaxLength;
    				// added to limit expanding in forms. 
    				// If you want full screen use 5 here
    				max_view_height_in_lines = 5; 
    				// if you have the line above, you must have this.  
    				// It's calculable from LAF
    				base_line_delta = 21; 
    			};
    		},
    		DLG_LINE
    		{
    			type = EEikCtEdwin;
    			prompt = qtn_header_line2;
    			id = enFormCtrlId2;
    			itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys;
    			control = EDWIN
    			{
    				flags = EEikEdwinNoHorizScrolling | EEikEdwinResizable;
    				width = KFormEdwinWidth;
    				lines = KFormEdwinLines;
    				maxlength = KFormEdwinMaxLength;
    				// added to limit expanding in forms. 
    				// If you want full screen use 5 here
    				max_view_height_in_lines = 5; 
    				// if you have the line above, you must have this.  
    				// It's calculable from LAF
    				base_line_delta = 21; 
    			};
    		},
    		DLG_LINE
    		{
    			type = EAknCtPopupFieldText;
    			prompt = qtn_header_line3;
    			id = enFormCtrlId3;
    			itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys;
    			control = POPUP_FIELD_TEXT
    			{
    				popupfield = POPUP_FIELD
    				{
    					width = 10;
    				};
    				textarray = r_currency_item_array;
    				active = 0;
    			};
    		},		
    		DLG_LINE
    		{
    			type = EAknCtPopupFieldText;
    			prompt = qtn_header_line4;
    			id = enFormCtrlId4;
    			itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys;
    			control = POPUP_FIELD_TEXT
    			{
    				popupfield = POPUP_FIELD
    				{
    					width = 10;
    				};
    				textarray = r_boolean_item_array;
    				active = 0;
    			};
    		},
    		DLG_LINE
    		{
    			type = EEikCtEdwin;
    			prompt = qtn_header_line5;
    			id = enFormCtrlId5;
    			itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys;
    			control = EDWIN
    			{
    				flags = EEikEdwinNoHorizScrolling | EEikEdwinResizable;
    				width = KFormEdwinWidth;
    				lines = KFormEdwinLines;
    				maxlength = KFormEdwinMaxLength;
    				// added to limit expanding in forms. 
    				// If you want full screen use 5 here
    				max_view_height_in_lines = 5; 
    				// if you have the line above, you must have this.  
    				// It's calculable from LAF
    				base_line_delta = 21; 
    			};
    		}
    	};
    }
    what can be the problem?

  2. #2
    Regular Contributor
    Join Date
    Aug 2005
    Posts
    87

    Re: text color in EDWIN in FORM

    Ok, there is no answer.

    I want to say that I also run AknExForm example from 2nd on the 3rd with the same result.

    I tryed to resolve it with Overriding colors but i managed to override just TLogicalColor::EColorControlText but not TLogicalColor::EColorControlHighlightText, I suppose that Highlighted value always drawn with KRgbBlack, but it should be drawn with current theme color.

    Dear Nokia team I supppose that this implementation bug. Pls, investigate this and give me any answer.

Similar Threads

  1. Problems when changing text in edwin while in FEP transaction
    By thedawn1977 in forum Symbian User Interface
    Replies: 1
    Last Post: 2007-09-07, 15:38
  2. Edwin more than 1 lines in form
    By ninidotnet in forum Symbian User Interface
    Replies: 2
    Last Post: 2006-04-20, 03:30
  3. Replies: 0
    Last Post: 2004-11-24, 18:49
  4. Form and Text Editor in Dialog
    By nutter420 in forum Symbian User Interface
    Replies: 5
    Last Post: 2004-08-27, 21:13
  5. Format text read from a file in Edwin Control
    By Vani in forum Symbian User Interface
    Replies: 1
    Last Post: 2003-07-02, 06:36

Posting Permissions

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