- -buttons
- type: list (default: Ok)
- List of buttons to be displayed consisting of a list of display strings with optional values.
Method 2) String and Value.
- Method 1) Simple Strings.
- In this case the text string will be used as the basis of the returned value stripped of any percent string underscore markup.
Clicking the "Yes" button will return "Yes" from the [gnocl::dialog] command or by substitution of the %v parameter in the -onResponse callback script..-buttons "%__Yes %__No"
For more complex display strings the use of an associate value makes response parsing simpler.
Use underscore ("'_") to indicate accelerators, e.g.
-buttons [list [list {%_P_ortable Document Format} pdf] [list {%_O_pen Document Text ODT} odt]
As with method 1), clicking the "Portable Document Format
" button will return "pdf" from the [gnocl::dialog] command or by
substitution of the %v parameter in the -onResponse callback
script.. Method 3) Default.
If the -buttons option is not specified then a single "Ok" button will be added to the dialog. This would be equivalent to using:
Note: The use of the %_ prefix is optional and retained for legacy.-buttons "%__Ok"
To add previously created button widgets, use the -actionButtons option.