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
Trusted Contributor
avi_yach
Posts: 184
Registered: ‎11-26-2010
My Device: Not Specified
Accepted Solution

Dialog box without buttons (Cannot use popup screen)

[ Edited ]

Flawed design pattern for one of the applications I am working on has made me post this question. I need a Dialog box without any buttons(I cannot settle for a poppup screen). Help of any sort is appreciated.

 

 

A Y. 

Developer
pradeep_ch
Posts: 543
Registered: ‎12-23-2010
My Device: Z10

Re: Dialog box without buttons (Cannot use popup screen)

[ Edited ]

Hi AVI,

 

You can create like this,

 

Dialog d = new Dialog("Hi", null, null, 0, null);
d.show();

 

But remember this will not blocks the event thread.

 

Thanks.

Developer
simon_hain
Posts: 16,282
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport

Re: Dialog box without buttons (Cannot use popup screen)

you can use http://www.blackberry.com/developers/docs/7.1.0api/net/rim/device/api/ui/component/Status.html#show(... i think dialog always has buttons.
in any case, both dialog and status are extensions of popupscreen, so you are using it.
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Trusted Contributor
avi_yach
Posts: 184
Registered: ‎11-26-2010
My Device: Not Specified

Re: Dialog box without buttons (Cannot use popup screen)

Pradeep_ch, thanks for your reply, that worked! but is it possible to draw an animated image on that dialogue box?

 

A Y.

 

============================================

Simon_hain, thanks for your reply! That was of great help!

 

A Y.

Developer
lakshman9687
Posts: 243
Registered: ‎07-22-2011
My Device: BlackBerry Z10

Re: Dialog box without buttons (Cannot use popup screen)

Hi,

In dialog it is not possible to draw animated image, it is accepted bitmap img only.

 

 

Regards,

Lakshman

----------------------------------------------------------
Feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.