I am studying Symbian. Is there anyone know how to create a label with semi-transparent background? Thanks.
I am studying Symbian. Is there anyone know how to create a label with semi-transparent background? Thanks.
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
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?
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
I didn't find the function SetBrushStyle() under CEikLabel.
Looks like it cannot be used on CEikLabel.
oh ... !!!
which sdk and for which device are you trying this ?
Amit Kankani
Nokia Developer Champion