Thank you for visiting the BlackBerry Support Community Forums.
BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)
BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.
"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."
- Kevin Michaluk, Founder, CrackBerry.com
Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.
12-17-2010 03:34 PM
The BaseDialog (and all dialogs since they extend the basedialog) is a service on the AIR runtime. Therefore not an actual object you can add to. You can only set a few variables and settings but other nothing can be added using the addChild() method. That being said, however, you can add objects and such using the messageHTML property of the AlertDialog class. Doing so you can add images and formatted text just like an HTML page. Here is an example from the QNX AsDocs:
var dialog:AlertDialog = new AlertDialog();
dialog.messageHtml = "<img src='http://www.somewebsite.com/somegraphic.jpg' width='500' height='350'/>";
This will add an image from an external source into your alert. hope that helps. good luck!
12-18-2010 11:21 AM - edited 12-18-2010 11:22 AM
12-18-2010 01:14 PM
I was thinking about extending one of the dialog classes to have multiple text inputs. So does this mean that i cannot acheive this via extension? If not then any suggestion on another good way of doing this?
12-18-2010 01:20 PM
@jtegen: I cant get any images to load up. dont know if its my network settings or if this is a bug in the message html. it formats the text fine but does not import images. ill keep working on it.
@Tjitte: I havent been successful yet in importing any sort of image. ill keep at it. ill update you if i find anything. but from the ASDocs only external images are (supposed to be) supported.
@baibhav: users have tried to extend the basedialog class but have failed. we assumed because it is not an actual physical object more of a service type class in the playbook. that or becasuet here is something else going on in the class we are not aware of.
12-18-2010 01:32 PM