×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Registered User
    Join Date
    Mar 2008
    Posts
    3

    Question how to create a label with semi-transparent background?

    I am studying Symbian. Is there anyone know how to create a label with semi-transparent background? Thanks.

  2. #2
    Nokia Developer Champion
    Join Date
    Oct 2006
    Location
    Bangalore, India
    Posts
    1,572

    Re: how to create a label with semi-transparent background?

    I am not sure if this is the best way but this may solve your problem...

    Suppose the lable is set the rect TRect iLableRect;

    then in your draw, for the iLableRect you can draw any bitmap (and it can be semitransparent too, depending on the mask given to the bitmap).

    hope this helps!
    Amit Kankani
    Nokia Developer Champion

  3. #3
    Registered User
    Join Date
    Mar 2008
    Posts
    3

    Re: how to create a label with semi-transparent background?

    The screen has a bitmap background and the semi-transparent label is a overlay on the screen. Can the label still be created by TRect iLableRect?

  4. #4
    Nokia Developer Champion
    Join Date
    Oct 2006
    Location
    Bangalore, India
    Posts
    1,572

    Re: how to create a label with semi-transparent background?

    ah i guess u got to try this:

    ceikLable->SetBrushStyle(ENullBrush)
    or
    ceikLable->SetBrushStyle(CGraphicsContext::ENullBrush)

    and see if it sets the background to be transparent, and then as you said your background already has the semi-transparent effect ! shud do the trick...

    hope this helps !
    Amit Kankani
    Nokia Developer Champion

  5. #5
    Registered User
    Join Date
    Mar 2008
    Posts
    3

    Re: how to create a label with semi-transparent background?

    I didn't find the function SetBrushStyle() under CEikLabel.
    Looks like it cannot be used on CEikLabel.

  6. #6
    Nokia Developer Champion
    Join Date
    Oct 2006
    Location
    Bangalore, India
    Posts
    1,572

    Re: how to create a label with semi-transparent background?

    oh ... !!!

    which sdk and for which device are you trying this ?
    Amit Kankani
    Nokia Developer Champion

Similar Threads

  1. Nokia 6131 + Audio Player Background?
    By andrescm in forum Streaming and Video
    Replies: 0
    Last Post: 2007-10-15, 23:17
  2. Transparent background for image using S60 emulator
    By emerge in forum Mobile Java Media (Graphics & Sounds)
    Replies: 2
    Last Post: 2007-08-29, 21:07
  3. is there anyway to create a background graphics?
    By alexwei in forum Mobile Java General
    Replies: 1
    Last Post: 2003-02-27, 08:57
  4. Reseting a mutable transparent image
    By keithmarsh in forum Mobile Java General
    Replies: 1
    Last Post: 2002-10-10, 11:10
  5. I want create MMS with original background
    By colorpower in forum General Messaging
    Replies: 2
    Last Post: 2002-07-22, 17: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
  •  
×