Update a button with new values.
#include <bps/dialog.h>
BPS_API int dialog_update_button(dialog_instance_t dialog,
int index,
const char *label,
bool enabled,
const char *button_context,
bool visible)
BlackBerry 10.0.0
The dialog that has the button to update.
The index of the button to update.
The button label. Pass NULL to retain the existing value, if previously set.
If true, the button is enabled when the dialog is displayed; if false, the button is disabled when the dialog is displayed.
The button context. Pass NULL to retain the existing value, if previously set.
If true, the button is visible when the dialog is displayed; if false, the button is not visible when the dialog is displayed.
The dialog_update_button() function updates a button that has already been added to the dialog with new values. If the dialog is currently displayed when the request to update the button is made, the update is not reflected until dialog_update() is called.
BPS_SUCCESS upon success, BPS_FAILURE with errno set otherwise.