Remove a button from a dialog.
#include <bps/dialog.h>
BPS_API int dialog_remove_button(dialog_instance_t dialog,
int index)
BlackBerry 10.0.0
The dialog to remove the button from.
The index of the button to remove. Buttons are indexed in the order that they are added with dialog_add_button() starting at 0.
The dialog_remove_button() function removes a button from the specified dialog. If the dialog is currently displayed when the request to remove the button is made, the update is not reflected until dialog_update() is called.
BPS_SUCCESS upon success, BPS_FAILURE with errno set otherwise.