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

Native Development

New Contributor
Posts: 5
Registered: ‎01-08-2013
My Device: Playbook 16GB
My Carrier: Other

Camera Viewfinder - Displaying an error message box



I've having some difficulty with displaying an error message box above a camera viewfinder window.


First, some details:


BB10 Dev Alpha


NDK Version:


I'm running the camera viewfinder in landscape mode and, on a certain event, displaying a message box above the viewfinder.

dialog_set_notification_message_text(dialog, buf);
dialog_add_button(dialog, "OK", true, 0, true);


I believe that the message box is auto sized (?) and that I have no control over the dimensions.


The box that displays is squashed onto the left hand side of the screen, and lines wrap to new lines inspite of the available space on the screen.


I am trying to display a maximum of 3 lines of 30 characters.


I am also open to displaying the information in other ways, as long as the data appears above the viewfinder!