Show / Hide Table of Contents

Method dialog.ButtonsList


Overload

Sets custom buttons to be displayed as a list.

public dialog ButtonsList(Strings buttons = default, bool asCommandLinks = true)
Parameters
buttons  (Strings)

List of button names. Can be string like "One|Two|..." or string[] or List<string>. Button ids will be 1, 2, ... . Default button will be 1, unless changed with dialog.Default. Unlike dialog.Buttons, this function does not allow to specify button ids; also all specified buttons will be custom buttons, even if named like "OK".

asCommandLinks  (bool)

The style of custom buttons. If false - row of classic buttons. If true - column of command-link buttons that can have multiline text.

Returns
dialog

Remarks

You can call dialog.Buttons too, to add common buttons (like OK, Cancel); use negative button ids. Both functions set the style (classic or command link) of custom buttons; wins the one called last.