Feature #3538
closedAdd new '.default' + '.dbu' + '.local' properties into $dialog() identifier
0%
Description
Hello,
I wanna suggest to add 3 new '.default' '.gui' and '.local' properties that these new properties will gonna improve the $dialog() identifier function to catch some fields that now are impossible to catch them.
.local = Would return $true or $false if the dialog that is open is local (-l) or not.
.default = Would return the default id from an dialog, if it is any, if not return $null.
.gui = Would return the GUI specified option that was set into the dialog (dbu or pixels).
Examples:
dialog -l Example {
title "Example"
size -1 -1 100 50
option dbu
button "Example 1", 1, 4 10 40 12
button "Example 2", 2, 50 10 40 12, cancel
button "Example A", 3, 4 30 40 12, default
button "Example B", 4, 50 30 40 12, ok
}
//echo -a IS: $dialog(example).default - $dialog(example).gui - $dialog(example).local
Returns: 3 - dbu - $true
- Thanks!