dialog_set_button_limit()

Set the button limit for a dialog.

Synopsis:

#include <bps/dialog.h>
 
BPS_API int dialog_set_button_limit(dialog_instance_t dialog,
                                    int button_limit)

Since:

BlackBerry 10.2.0

Arguments:

dialog

The dialog to update.

button_limit

The button limit, must be greater than 0.

Library:

libbps (For the qcc command, use the -l bps option to link against this library)

Description:

The dialog_set_button_limit() function sets the number of buttons allowed per row. The default is 2.

Returns:

BPS_SUCCESS upon success, BPS_FAILURE with errno set otherwise.