comparison man/widget.texi @ 652:2cf5d151eeb9

[xemacs-hg @ 2001-08-26 10:25:11 by stephent] Update docs for widgets and lisp/README. <15240.52706.361788.550139@turnbull.sk.tsukuba.ac.jp>
author stephent
date Sun, 26 Aug 2001 10:25:14 +0000
parents 576fb035e263
children 955603004a04
comparison
equal deleted inserted replaced
651:98b3721724bd 652:2cf5d151eeb9
540 @item :notify 540 @item :notify
541 A function called each time the widget or a nested widget is changed. 541 A function called each time the widget or a nested widget is changed.
542 The function is called with two or three arguments. The first argument 542 The function is called with two or three arguments. The first argument
543 is the widget itself, the second argument is the widget that was 543 is the widget itself, the second argument is the widget that was
544 changed, and the third argument is the event leading to the change, if 544 changed, and the third argument is the event leading to the change, if
545 any. 545 any. In editable fields, this includes all insertions, deletions,
546 @emph{etc}. To watch only for ``final'' actions, redefine the
547 @code{:action} callback.
546 548
547 @item :menu-tag 549 @item :menu-tag
548 Tag used in the menu when the widget is used as an option in a 550 Tag used in the menu when the widget is used as an option in a
549 @code{menu-choice} widget. 551 @code{menu-choice} widget.
550 552
1467 unknown escape sequences. It will handle the @samp{%h} and any future 1469 unknown escape sequences. It will handle the @samp{%h} and any future
1468 escape sequences as well as give an error for unknown escapes. 1470 escape sequences as well as give an error for unknown escapes.
1469 1471
1470 @item :action 1472 @item :action
1471 Function to handle user initiated events. By default, @code{:notify} 1473 Function to handle user initiated events. By default, @code{:notify}
1472 the parent. 1474 the parent. Actions normally do not include mere edits, but refer to
1475 things like invoking buttons or hitting enter in an editable field. To
1476 watch for any change, redefine the @code{:notify} callback.
1473 1477
1474 The following predefined function can be used here: 1478 The following predefined function can be used here:
1475 1479
1476 @defun widget-parent-action widget &optional event 1480 @defun widget-parent-action widget &optional event
1477 Tell @code{:parent} of @var{widget} to handle the @code{:action}.@* 1481 Tell @code{:parent} of @var{widget} to handle the @code{:action}.@*