×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Jan 2009
    Posts
    94

    Question Problem with CEikSecretEditor border when skin aware

    I’m using a CEikSecretEditor in my application and it works ok with the control border visible, but when I make my application skin aware the border does not show even though I set the border using iSecretEditor->SetBorder( TGulBorder::ESingleBlack );

  2. #2
    Nokia Developer Champion
    Join Date
    May 2004
    Posts
    2,266

    Re: Problem with CEikSecretEditor border when skin aware

    Hi,

    You may choose to draw the border by yourself like this:

    Code:
    void CHelloWorldContainer::Draw( const TRect& aRect ) const
    	{
    	CWindowGc& gc = SystemGc();
    	 if(iSecret1!=NULL)
    		 {
    		 TRect rect = iSecret1->Rect();
    		 rect.Shrink(-1,-1); // make sure that the border will not be covered by the editor
    		 iSecret1->Border().Draw(gc, rect); // draw border for the editor
    		 }
    	}
    You may also want to let the editor text color be harmonious with the theme background.

    Code:
    void CHelloWorldContainer::ConstructL(...
    	{
    	...
    	iSecret1->SetSkinTextColorL(EAknsCIQsnTextColorsCG27); // pick text color from the current theme
    	...
    	SetRect( aRect );
    	ActivateL();
    	}
    Regards

    Ziteng Chen

  3. #3
    Registered User
    Join Date
    Jan 2009
    Posts
    94

    Re: Problem with CEikSecretEditor border when skin aware

    Hi

    Thanks for this comment. This is exactly the work around that I have implemented, it just seems that this should not be needed and the border should be drawn by the control.

    Regards
    Jonathon

Similar Threads

  1. N79 Firmware 20.175 Call Log Problem
    By gauravh1 in forum Series 40 & S60 Platform Feedback Archive
    Replies: 1
    Last Post: 2009-06-23, 12:41
  2. Modules required :)
    By neil.young in forum Symbian
    Replies: 20
    Last Post: 2009-06-07, 11:35
  3. How to set skin colors to CEikonEnv?
    By kasuga in forum Symbian
    Replies: 0
    Last Post: 2007-04-13, 00:06
  4. Problem: S60 SDK for CW in PC with .NET
    By anttij in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 1
    Last Post: 2005-02-28, 11:36
  5. PJava runtime problem within Nokia 9210, Hrlp~!
    By Nokia_Archive in forum PersonalJava
    Replies: 1
    Last Post: 2002-05-28, 13:15

Posting Permissions

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