×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Regular Contributor
    Join Date
    Nov 2006
    Location
    Rajkot
    Posts
    430

    How we can draw Control with Roubded Corner??

    Hi

    iEikEdwin = new ( ELeave ) CEikEdwin;
    iEikEdwin->ConstructL( 0, 50, 50, 1 );
    iEikEdwin->SetContainerWindowL( *this );
    iEikEdwin->SetExtent( TPoint(5,35), TSize(165,17) );
    TInt thickBorder = TGulBorder::TRounding(TGulBorder::EAddFourRoundingPixels); //::EAddFourRoundingPixels;
    iEikEdwin->SetBorder(thickBorder);
    iEikEdwin->SetBackgroundColorL(TRgb(254,218,227));
    iEikEdwin->SetFocus(ETrue);

    In above code i tried to draw EikEdwin(Textbox) with Rounded Corner but it's display normal EikEddwin Control.

    if Anybody know that please help me for that.

    Regards
    Tanya

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

    Re: How we can draw Control with Roubded Corner??

    You could maybe try drwing a background image that is few pixels bigger than your edwin, and draw the edwin on top of it without any borders.

  3. #3
    Regular Contributor
    Join Date
    Nov 2006
    Location
    Rajkot
    Posts
    430

    Re: How we can draw Control with Roubded Corner??

    No, i am not doing try for add image in textbox control, i want textbox(EikEdwin) control with ROUND CONRNER.

    if you know any property for that please tell me.

    Tanya

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

    Re: How we can draw Control with Roubded Corner??

    I was just giving you an option that would work 100% in the cases, its well known defect that original norders do not really work too well.

  5. #5
    Registered User
    Join Date
    Oct 2010
    Posts
    12

    Re: How we can draw Control with Roubded Corner??

    I did the borders using a background image. One problem though, the text i enter in the editor gets hidden when the focus is on another editor. when i come back and start editing the editor, the text re-appears. Any ideas?

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

    Re: How we can draw Control with Roubded Corner??

    Could it be that the text color is blended to the background while it is not having a focus ?`, thus try using different color background image/text and see whther it helps.

Similar Threads

  1. Replies: 3
    Last Post: 2009-02-28, 13:57
  2. Replies: 2
    Last Post: 2007-07-24, 14:33
  3. Making a component control draw outside its extent??
    By mayur_24 in forum Symbian Media (Closed)
    Replies: 1
    Last Post: 2005-08-30, 08:43
  4. Draw gif animation on grid control.
    By furukawatakumi in forum Symbian Tools & SDKs
    Replies: 0
    Last Post: 2005-06-03, 07:09
  5. AppUi - Control communication.
    By Subotai4Winds in forum Symbian
    Replies: 1
    Last Post: 2005-01-20, 08:53

Posting Permissions

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