Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Developer
Amit_K
Posts: 135
Registered: ‎08-27-2008
My Device: Not Specified

How to use setGlobalAlpha in popupscreen

Hello Everybody,

I want to create the semitransparent popup screen. I have read somewhere in API. Use setGlobalAlpha to set the Transparency.

How to use this API in application.

Any help will be appreciated.

if possible please explain with code snippet.

Thanks in advance.
Developer
RexDoug
Posts: 4,764
Registered: ‎07-21-2008
My Device: Not Specified

Re: How to use setGlobalAlpha in popupscreen

See the API docs for the Graphics class.

 

Your paint() method is called with a reference to this object. You use Graphics.setGlobalAlpha(value), where value = 0 is transparent and value = 255 is opaque.

 

 

New Developer
skalluraya
Posts: 47
Registered: ‎10-19-2009
My Device: Not Specified

Re: How to use setGlobalAlpha in popupscreen

i have similar issue i want a pop screen. This pop screen contains a listfield. i have set setGlobalAlpha to 40. The pop is semi transperent. but when the focus goes to listfield on the popscreen the transperency goes off.