Set the default button index for a dialog.
#include <bps/dialog.h>
BPS_API int dialog_set_default_button_index(dialog_instance_t dialog,
int default_button_index)
BlackBerry 10.0.0
The dialog to update.
The default button index to set. Buttons are indexed in the order that they are added with dialog_add_button(), starting at 0.
The dialog_set_default_button_index() function sets the index of the button that is actioned when the Enter key is pressed while the dialog is displayed. This action is equivalent to the user pressing the button at the given index.
BPS_SUCCESS upon success, BPS_FAILURE with errno set otherwise.