×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Super Contributor
    Join Date
    Mar 2004
    Location
    Czech Republic
    Posts
    2,037

    CEikSecretEditor and border

    Hi,

    does anyone know how to remove the white border from the CEikSecretEditor or change its color? I have set the border width to 0 (by calling 'SetBorder') and I also change the control background (by calling 'OverrideColorL'), but there is still kind of one pixel width white border around the editor...

    Code:
    TResourceReader reader;
    iCoeEnv->CreateResourceReaderLC(reader, R_PASSWORD_SECRET_EDITOR);
    iPasswordEditor = new( ELeave ) CEikSecretEditor();
    iPasswordEditor->SetContainerWindowL( *this );
    iPasswordEditor->ConstructFromResourceL(reader);
    CleanupStack::PopAndDestroy();
    
    iPasswordEditor->AknSetFont( *iFont );
    iPasswordEditor->AknSetAlignment(CGraphicsContext::ECenter);
    
    iPasswordEditor->SetBorder( 0 );
    
    // Password editor size and position
    TSize passwordEditorsize = iPasswordEditor->MinimumSize();
    iPasswordEditor->SetSize( passwordEditorsize );  
      
    // Set colors
    iPasswordEditor->OverrideColorL( EColorControlBackground, RGB_GRAY );
    iPasswordEditor->OverrideColorL( EColorControlText, RGB_ORANGE );
    Please check the attached screenshot.

    BR
    STeN
    Attached Images Attached Images

  2. #2
    Regular Contributor
    Join Date
    Sep 2008
    Posts
    155

    Re: CEikSecretEditor and border

    i feel you can delete "iPasswordEditor->SetBorder( 0 );"

  3. #3
    Regular Contributor
    Join Date
    Sep 2008
    Posts
    155

    Re: CEikSecretEditor and border

    iPasswordEditor->SetBorder( TGulBorder::ESingleBlack );

    it will black.

  4. #4
    Super Contributor
    Join Date
    Jul 2007
    Location
    Beijing, China
    Posts
    538

    Re: CEikSecretEditor and border

    to remove border, you should call:
    iPasswordEditor->SetBorder(ENone);

Posting Permissions

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