943 |
the third argument is the event leading to the change, if any. |
the third argument is the event leading to the change, if any. |
944 |
|
|
945 |
@item :menu-tag |
@item :menu-tag |
946 |
Tag used in the menu when the widget is used as an option in a |
A tag used in the menu when the widget is used as an option in a |
947 |
@code{menu-choice} widget. |
@code{menu-choice} widget. |
948 |
|
|
949 |
@item :menu-tag-get |
@item :menu-tag-get |
950 |
Function used for finding the tag when the widget is used as an option |
A function used for finding the tag when the widget is used as an option |
951 |
in a @code{menu-choice} widget. By default, the tag used will be either the |
in a @code{menu-choice} widget. By default, the tag used will be either the |
952 |
@code{:menu-tag} or @code{:tag} property if present, or the @code{princ} |
@code{:menu-tag} or @code{:tag} property if present, or the @code{princ} |
953 |
representation of the @code{:value} property if not. |
representation of the @code{:value} property if not. |
954 |
|
|
955 |
@item :validate |
@item :validate |
956 |
A function which takes a widget as an argument, and return nil if the |
A function which takes a widget as an argument, and return @code{nil} |
957 |
widgets current value is valid for the widget. Otherwise, it should |
if the widget's current value is valid for the widget. Otherwise, it |
958 |
return the widget containing the invalid data, and set that widgets |
should return the widget containing the invalid data, and set that |
959 |
@code{:error} property to a string explaining the error. |
widget's @code{:error} property to a string explaining the error. |
960 |
|
|
961 |
You can use the function @code{widget-children-validate} for this job; |
You can use the function @code{widget-children-validate} for this job; |
962 |
it tests that all children of @var{widget} are valid. |
it tests that all children of @var{widget} are valid. |