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

Native Development

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

Camera Viewfinder - Displaying an error message box

Hi,

 

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

 

First, some details:

 

BB10 Dev Alpha

Software: 10.0.9.348

NDK Version: 10.0.10.261

 

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

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

 

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!

 

 

Thanks,

 

Andy