comparison man/widget.texi @ 161:28f395d8dc7a r20-3b7

Import from CVS: tag r20-3b7
author cvs
date Mon, 13 Aug 2007 09:42:26 +0200
parents 6b37e6ddd302
children 0132846995bd
comparison
equal deleted inserted replaced
160:1c55655d6702 161:28f395d8dc7a
1 \input texinfo.tex 1 \input texinfo.tex
2 2
3 @c %**start of header 3 @c %**start of header
4 @setfilename widget 4 @setfilename ../info/widget
5 @settitle The Emacs Widget Library 5 @settitle The Emacs Widget Library
6 @iftex 6 @iftex
7 @afourpaper 7 @afourpaper
8 @headings double 8 @headings double
9 @end iftex 9 @end iftex
11 11
12 @node Top, Introduction, (dir), (dir) 12 @node Top, Introduction, (dir), (dir)
13 @comment node-name, next, previous, up 13 @comment node-name, next, previous, up
14 @top The Emacs Widget Library 14 @top The Emacs Widget Library
15 15
16 Version: 1.9908 16 Version: 1.9916
17 17
18 @menu 18 @menu
19 * Introduction:: 19 * Introduction::
20 * User Interface:: 20 * User Interface::
21 * Programming Example:: 21 * Programming Example::
341 (widget-create 'radio-button-choice 341 (widget-create 'radio-button-choice
342 :value "One" 342 :value "One"
343 :notify (lambda (widget &rest ignore) 343 :notify (lambda (widget &rest ignore)
344 (message "You selected %s" 344 (message "You selected %s"
345 (widget-value widget))) 345 (widget-value widget)))
346 '(item "One") '(item "Anthor One.") '(item "A Final One.")) 346 '(item "One") '(item "Another One.") '(item "A Final One."))
347 (widget-insert "\n") 347 (widget-insert "\n")
348 (widget-create 'push-button 348 (widget-create 'push-button
349 :notify (lambda (&rest ignore) 349 :notify (lambda (&rest ignore)
350 (if (= (length (widget-value widget-example-repeat)) 350 (if (= (length (widget-value widget-example-repeat))
351 3) 351 3)
602 Widget will look here for a file with the same name as specified for the 602 Widget will look here for a file with the same name as specified for the
603 image, with either a @samp{.xpm} (if supported) or @samp{.xbm} extension. 603 image, with either a @samp{.xpm} (if supported) or @samp{.xbm} extension.
604 @end deffn 604 @end deffn
605 605
606 @deffn{User Option} widget-glyph-enable 606 @deffn{User Option} widget-glyph-enable
607 If non-nil, allow glyphs to appear on displayes where they are supported. 607 If non-nil, allow glyphs to appear on displays where they are supported.
608 @end deffn 608 @end deffn
609 609
610 610
611 @menu 611 @menu
612 * link:: 612 * link::
736 which matches everything. 736 which matches everything.
737 737
738 @item :keymap 738 @item :keymap
739 Keymap used in the editable field. The default value is 739 Keymap used in the editable field. The default value is
740 @code{widget-field-keymap}, which allows you to use all the normal 740 @code{widget-field-keymap}, which allows you to use all the normal
741 editing commands, even if the buffers major mode supress some of them. 741 editing commands, even if the buffers major mode suppress some of them.
742 Pressing return invokes the function specified by @code{:action}. 742 Pressing return invokes the function specified by @code{:action}.
743 @end table 743 @end table
744 744
745 @node text, menu-choice, editable-field, Basic Types 745 @node text, menu-choice, editable-field, Basic Types
746 @comment node-name, next, previous, up 746 @comment node-name, next, previous, up
1523 There is a minor mode for manipulating widgets in major modes that 1523 There is a minor mode for manipulating widgets in major modes that
1524 doesn't provide any support for widgets themselves. This is mostly 1524 doesn't provide any support for widgets themselves. This is mostly
1525 intended to be useful for programmers doing experiments. 1525 intended to be useful for programmers doing experiments.
1526 1526
1527 @deffn Command widget-minor-mode 1527 @deffn Command widget-minor-mode
1528 Togle minor mode for traversing widgets. 1528 Toggle minor mode for traversing widgets.
1529 With arg, turn widget mode on if and only if arg is positive. 1529 With arg, turn widget mode on if and only if arg is positive.
1530 @end deffn 1530 @end deffn
1531 1531
1532 @defvar widget-minor-mode-keymap 1532 @defvar widget-minor-mode-keymap
1533 Keymap used in @code{widget-minor-mode}. 1533 Keymap used in @code{widget-minor-mode}.
1569 1569
1570 @item 1570 @item
1571 Finish @code{:tab-order}. 1571 Finish @code{:tab-order}.
1572 1572
1573 @item 1573 @item
1574 Make indentation work with glyphs and propertional fonts. 1574 Make indentation work with glyphs and proportional fonts.
1575 1575
1576 @item 1576 @item
1577 Add commands to show overview of object and class hierarchies to the 1577 Add commands to show overview of object and class hierarchies to the
1578 browser. 1578 browser.
1579 1579