Debian Codegraph @

pod/options.pod

raw
1 # Copyright (c) 1990-1994 The Regents of the University of California.
2 # Copyright (c) 1994-1996 Sun Microsystems, Inc.
3 # See the file "license.terms" for information on usage and redistribution
4 # of this file, and for a DISCLAIMER OF ALL WARRANTIES.
5 #
6 #
7
8 =head1 NAME
9
10 Tk::options - Standard options supported by widgets and their manipulation
11
12 =for category Creating and Configuring Widgets
13
14 =head1 SYNOPSIS
15
16 S< >I<$value> = I<$widget>-E<gt>B<cget>('I<-option>');
17
18 S< >I<$widget>-E<gt>B<configure>(I<-option>=E<gt>I<value> ?,I<-option>=E<gt>I<value> ...?);
19
20 S< >I<@list> = I<$widget>-E<gt>B<configure>('I<-option>');
21
22 S< >I<@lol> = I<$widget>-E<gt>B<configure>;
23
24 =head1 DESCRIPTION
25
26 All widgets, and images have a standard mechanism for setting and querying
27 attibutes or options. The mechanism is based on two methods B<configure>
28 and B<cget>. The behaviour of these methods is as follows:
29
30 =over 4
31
32 =item I<$widget>-E<gt>B<configure>(I<-option>=E<gt>I<value> ?,I<-option>=E<gt>I<value> ...?);
33
34 Sets the values of I<-option> to I<value> for each I<-option>=E<gt>I<value>
35 pair. The internal B<new> method does an implicit B<configure> in this
36 form with options passed in at widget create time.
37
38 =item I<$widget>-E<gt>B<configure>('I<-option>')
39
40 In array context returns a list of five or two elements. If I<-option>
41 is an alias for another options it return a list consisting of the
42 alias option and the name for the option is is an alias for, e.g.,
43 C<('-bg', 'background')>. If I<-option> is not an alias the returned
44 list has the following five elements:
45
46 =over 8
47
48 =item I<Option Name>
49
50 The value of I<-option>, e.g., B<-background>.
51
52 =item I<Name>
53
54 The option's name in the option database, e.g., C<background>.
55
56 =item I<Class>
57
58 The option's class value in the option database, e.g., C<Background>.
59
60 =item I<Default>
61
62 The default value for the option if not specified or in the option database,
63 e.g., C<grey>.
64
65 =item I<Value>
66
67 The current value (as returned by B<cget>), e.g., C<white>.
68
69 =back
70
71 =item I<$widget>-E<gt>B<configure>
72
73 Returns a list of lists for all the options supported by I<$widget>.
74 Each sub-list is in the form returned by B<configure>('I<-option>').
75 (This mechanism is used by the B<Tk::Derived> class to determine
76 the options available from base class.)
77
78 =item I<$widget>-E<gt>B<cget>('I<-option>')
79
80 Returns the current value of I<-option> for I<$widget>.
81
82 B<cget>('I<-option>') is clumsy with the need for B<''> due to perl's
83 parsing rules. Something more subtle using L<tie|perlfunc/tie> might look better.
84
85 =back
86
87 The following paragraphs describe the common configuration options supported by
88 widgets in the Tk toolkit. Every widget does not necessarily support every option
89 (see the the documentation entries for individual widgets for a list of the
90 standard options supported by that widget), but if a widget does support an option
91 with one of the names listed below, then the option has exactly the effect
92 described below.
93
94 In the descriptions below, ``Name'' refers to the option's name in the option
95 database. ``Class'' refers to the option's class value
96 in the option database. ``Switch'' refers to the switch used in widget-creation
97 and B<configure> widget methods to set this value. For example, if an option's
98 configure option is B<-foreground> and there exists a widget I<$widget>, then the
99 call:
100
101 S< >I<$widget>-E<gt>B<configure>(B<-foreground>=E<gt>B<'black'>)
102
103 may be used to specify the value B<black> for the option in the widget I<$widget>.
104 Configure options may be abbreviated, as long as the abbreviation is unambiguous
105 (abbreviation is deprecated in perl/Tk).
106
107 =head2 Creation options: Widget Name and Class
108
109 The B<Name> and B<-class> options can only be specified when a widget is
110 created, and cannot be changed with B<configure>. These options determine
111 the widget's identity and how Tk applies resource values from the
112 option database (see L<Tk::option>) and so they
113 cannot be assigned by the options database.
114
115 =over 4
116
117 =item Name: I<name>
118
119 =item Switch: B<Name>
120
121 Specifies the path element for the widget. Names generally begin with a
122 lowercase letter.
123
124 Each widget has a unique I<pathname> that follows the hierarchy from the
125 B<MainWindow> to the widget itself. Since the widget's B<PathName> is
126 used to assign options from the options database, it is important to
127 specify a distinctive B<Name> for any widget that will have non-default
128 options. See L<Tk::option> for details.
129
130 =item Name: I<class>
131
132 =item Switch: B<-class>
133
134 Specifies a class for the window. Classes generally begin with an
135 uppercase letter.
136
137 This class will be used when querying the option database for
138 the window's other options (see Tk::options), and it will also be used
139 later for other purposes such as bindings. One typically assigns a class
140 to a B<TopLevel> or B<Frame> so that the class will apply to all of
141 that widget's children.
142
143 =back
144
145 =head2 Reconfigurable options
146
147 These options can be set at widget creation or changed later via B<configure>.
148
149 =over 4
150
151 =item Name: B<activeBackground>
152
153 =item Class: B<Foreground>
154
155 =item Switch: B<-activebackground>
156
157 Specifies background color to use when drawing active elements.
158 An element (a widget or portion of a widget) is active if the
159 mouse cursor is positioned over the element and pressing a mouse button
160 will cause some action to occur.
161 If strict Motif compliance has been requested by setting the
162 B<$Tk::strictMotif> variable, this option will normally be
163 ignored; the normal background color will be used instead.
164 For some elements on Windows and Macintosh systems, the active color
165 will only be used while mouse button 1 is pressed over the element.
166
167 =item Name: B<activeBorderWidth>
168
169 =item Class: B<BorderWidth>
170
171 =item Switch: B<-activeborderwidth>
172
173 Specifies a non-negative value indicating
174 the width of the 3-D border drawn around active elements.
175 See above for definition of active elements.
176 The value may have any of the forms acceptable to B<Tk_GetPixels>.
177 This option is typically only available in widgets displaying more
178 than one element at a time (e.g. menus but not buttons).
179
180 =item Name: B<activeForeground>
181
182 =item Class: B<Background>
183
184 =item Switch: B<-activeforeground>
185
186 Specifies foreground color to use when drawing active elements.
187 See above for definition of active elements.
188
189 =item Name: B<activetile>
190
191 =item Class: B<Tile>
192
193 =item Switch: B<-activetile>
194
195 Specifies image used to display inside active elements of the widget.
196 See above for definition of active elements.
197
198 =item Name: B<anchor>
199
200 =item Class: B<Anchor>
201
202 =item Switch: B<-anchor>
203
204 Specifies how the information in a widget (e.g. text or a bitmap)
205 is to be displayed in the widget.
206 Must be one of the values B<n>, B<ne>, B<e>, B<se>,
207 B<s>, B<sw>, B<w>, B<nw>, or B<center>.
208 For example, B<nw> means display the information such that its
209 top-left corner is at the top-left corner of the widget.
210
211 =item Name: B<background>
212
213 =item Class: B<Background>
214
215 =item Switch: B<-background>
216
217 =item Alias: B<-bg>
218
219 Specifies the normal background color to use when displaying the
220 widget.
221
222 =item Name: B<bitmap>
223
224 =item Class: B<Bitmap>
225
226 =item Switch: B<-bitmap>
227
228 Specifies a bitmap to display in the widget, in any of the forms
229 acceptable to B<Tk_GetBitmap>.
230 The exact way in which the bitmap is displayed may be affected by
231 other options such as B<-anchor> or B<-justify>.
232 Typically, if this option is specified then it overrides other
233 options that specify a textual value to display in the widget;
234 the B<-bitmap> option may be reset to an empty string to re-enable
235 a text display.
236 In widgets that support both B<-bitmap> and B<-image> options,
237 B<-image> will usually override B<-bitmap>.
238
239 =item Name: B<borderWidth>
240
241 =item Class: B<BorderWidth>
242
243 =item Switch: B<-borderwidth>
244
245 =item Alias: B<-bd>
246
247 Specifies a non-negative value indicating the width
248 of the 3-D border to draw around the outside of the widget (if such a
249 border is being drawn; the B<relief> option typically determines
250 this). The value may also be used when drawing 3-D effects in the
251 interior of the widget.
252 The value may have any of the forms acceptable to B<Tk_GetPixels>.
253
254 =item Name: B<compound>
255
256 =item Class: B<Compound>
257
258 =item Switch: B<-compound>
259
260 Specifies if the widget should display text and bitmaps/images at the
261 same time, and if so, where the bitmap/image should be placed relative
262 to the text. Must be one of the values B<none>, B<bottom>, B<top>,
263 B<left>, B<right>, or B<center>. For example, the (default) value
264 B<none> specifies that the bitmap or image should (if defined) be
265 displayed instead of the text, the value B<left> specifies that the
266 bitmap or image should be displayed to the left of the text, and the
267 value B<center> specifies that the bitmap or image should be displayed on
268 top of the text.
269
270 =item Name: B<cursor>
271
272 =item Class: B<Cursor>
273
274 =item Switch: B<-cursor>
275
276 Specifies the mouse cursor to be used for the widget.
277 The value may have any of the forms acceptable to B<Tk_GetCursor>.
278
279 =item Name: B<dash>
280
281 =item Class: B<Dash>
282
283 =item Switch: B<-dash>
284
285 The value may have any of the forms accepted by B<Tk_GetDash>,
286 such as B<4>, B<[6,4]>, B<.>, B<->, B<-.>, or B<-..>.
287
288 =item Name: B<dashoffset>
289
290 =item Class: B<Dashoffset>
291
292 =item Switch: B<-dashoffset>
293
294 Specifies the offset in the dash list where the drawing starts.
295
296 =item Name: B<disabledForeground>
297
298 =item Class: B<DisabledForeground>
299
300 =item Switch: B<-disabledforeground>
301
302 Specifies foreground color to use when drawing a disabled element.
303 If the option is specified as an empty string (which is typically the
304 case on monochrome displays), disabled elements are drawn with the
305 normal foreground color but they are dimmed by drawing them
306 with a stippled fill pattern.
307
308 =item Name: B<disabledtile>
309
310 =item Class: B<Tile>
311
312 =item Switch: B<-disabledtile>
313
314 Specifies image to use when drawing a disabled element.
315
316 =item Name: B<exportSelection>
317
318 =item Class: B<ExportSelection>
319
320 =item Switch: B<-exportselection>
321
322 Specifies whether or not a selection in the widget should also be
323 the X selection.
324 The value may have any of the forms accepted by B<Tcl_GetBoolean>,
325 such as B<true>, B<false>, B<0>, B<1>, B<yes>, or B<no>.
326 If the selection is exported, then selecting in the widget deselects
327 the current X selection, selecting outside the widget deselects any
328 widget selection, and the widget will respond to selection retrieval
329 requests when it has a selection. The default is usually for widgets
330 to export selections.
331
332 =item Name: B<font>
333
334 =item Class: B<Font>
335
336 =item Switch: B<-font>
337
338 Specifies the font to use when drawing text inside the widget.
339
340 =item Name: B<foreground>
341
342 =item Class: B<Foreground>
343
344 =item Switch: B<-foreground>
345
346 =item Alias: B<-fg>
347
348 Specifies the normal foreground color to use when displaying the widget.
349
350 =item Name: B<highlightBackground>
351
352 =item Class: B<HighlightBackground>
353
354 =item Switch: B<-highlightbackground>
355
356 Specifies the color to display in the traversal highlight region when
357 the widget does not have the input focus.
358
359 =item Name: B<highlightColor>
360
361 =item Class: B<HighlightColor>
362
363 =item Switch: B<-highlightcolor>
364
365 Specifies the color to use for the traversal highlight rectangle that is
366 drawn around the widget when it has the input focus.
367
368 =item Name: B<highlightThickness>
369
370 =item Class: B<HighlightThickness>
371
372 =item Switch: B<-highlightthickness>
373
374 Specifies a non-negative value indicating the width of the highlight
375 rectangle to draw around the outside of the widget when it has the
376 input focus.
377 The value may have any of the forms acceptable to B<Tk_GetPixels>.
378 If the value is zero, no focus highlight is drawn around the widget.
379
380 =item Name: B<image>
381
382 =item Class: B<Image>
383
384 =item Switch: B<-image>
385
386 Specifies an image to display in the widget, which must have been
387 created with an image create. (See L<Tk::Image> for details of image creation.)
388 Typically, if the B<-image> option is specified then it overrides other
389 options that specify a bitmap or textual value to display in the widget;
390 the B<-image> option may be reset to an empty string to re-enable
391 a bitmap or text display.
392
393 =item Name: B<insertBackground>
394
395 =item Class: B<Foreground>
396
397 =item Switch: B<-insertbackground>
398
399 Specifies the color to use as background in the area covered by the
400 insertion cursor. This color will normally override either the normal
401 background for the widget (or the selection background if the insertion
402 cursor happens to fall in the selection).
403
404 =item Name: B<insertBorderWidth>
405
406 =item Class: B<BorderWidth>
407
408 =item Switch: B<-insertborderwidth>
409
410 Specifies a non-negative value indicating the width
411 of the 3-D border to draw around the insertion cursor.
412 The value may have any of the forms acceptable to B<Tk_GetPixels>.
413
414 =item Name: B<insertOffTime>
415
416 =item Class: B<OffTime>
417
418 =item Switch: B<-insertofftime>
419
420 Specifies a non-negative integer value indicating the number of
421 milliseconds the insertion cursor should remain ``off'' in each blink cycle.
422 If this option is zero then the cursor doesn't blink: it is on
423 all the time.
424
425 =item Name: B<insertOnTime>
426
427 =item Class: B<OnTime>
428
429 =item Switch: B<-insertontime>
430
431 Specifies a non-negative integer value indicating the number of
432 milliseconds the insertion cursor should remain ``on'' in each blink cycle.
433
434 =item Name: B<insertWidth>
435
436 =item Class: B<InsertWidth>
437
438 =item Switch: B<-insertwidth>
439
440 Specifies a value indicating the total width of the insertion cursor.
441 The value may have any of the forms acceptable to B<Tk_GetPixels>.
442 If a border has been specified for the insertion
443 cursor (using the B<insertBorderWidth> option), the border
444 will be drawn inside the width specified by the B<insertWidth>
445 option.
446
447 =item Name: B<jump>
448
449 =item Class: B<Jump>
450
451 =item Switch: B<-jump>
452
453 For widgets with a slider that can be dragged to adjust a value,
454 such as scrollbars, this option determines when
455 notifications are made about changes in the value.
456 The option's value must be a boolean of the form accepted by
457 B<Tcl_GetBoolean>.
458 If the value is false, updates are made continuously as the
459 slider is dragged.
460 If the value is true, updates are delayed until the mouse button
461 is released to end the drag; at that point a single notification
462 is made (the value ``jumps'' rather than changing smoothly).
463
464 =item Name: B<justify>
465
466 =item Class: B<Justify>
467
468 =item Switch: B<-justify>
469
470 When there are multiple lines of text displayed in a widget, this
471 option determines how the lines line up with each other.
472 Must be one of B<left>, B<center>, or B<right>.
473 B<Left> means that the lines' left edges all line up, B<center>
474 means that the lines' centers are aligned, and B<right> means
475 that the lines' right edges line up.
476
477 =item Name: B<offset>
478
479 =item Class: B<Offset>
480
481 =item Switch: B<-offset>
482
483 Specifies the offset of tiles (see also B<-tile> option). It can
484 have two different formats B<-offset x,y> or B<-offset side>,
485 where side can be B<n>, B<ne>, B<e>, B<se>, B<s>,
486 B<sw>, B<w>, B<nw>, or B<center>. In the first case
487 the origin is the origin of the toplevel of the current window.
488 For the canvas itself and canvas objects the origin is the canvas
489 origin, but putting B<#> in front of the coordinate pair
490 indicates using the toplevel origin in stead. For canvas objects,
491 the B<-offset> option is used for stippling as well.
492 For the line and polygon canvas items you can also specify
493 an index as argument, which connects the stipple or tile
494 origin to one of the coordinate points of the line/polygon.
495
496 =item Name: B<orient>
497
498 =item Class: B<Orient>
499
500 =item Switch: B<-orient>
501
502 For widgets that can lay themselves out with either a horizontal
503 or vertical orientation, such as scrollbars, this option specifies
504 which orientation should be used. Must be either B<horizontal>
505 or B<vertical> or an abbreviation of one of these.
506
507 =item Name: B<padX>
508
509 =item Class: B<Pad>
510
511 =item Switch: B<-padx>
512
513 Specifies a non-negative value indicating how much extra space
514 to request for the widget in the X-direction.
515 The value may have any of the forms acceptable to B<Tk_GetPixels>.
516 When computing how large a window it needs, the widget will
517 add this amount to the width it would normally need (as determined
518 by the width of the things displayed in the widget); if the geometry
519 manager can satisfy this request, the widget will end up with extra
520 internal space to the left and/or right of what it displays inside.
521 Most widgets only use this option for padding text: if they are
522 displaying a bitmap or image, then they usually ignore padding
523 options.
524
525 =item Name: B<padY>
526
527 =item Class: B<Pad>
528
529 =item Switch: B<-pady>
530
531 Specifies a non-negative value indicating how much extra space
532 to request for the widget in the Y-direction.
533 The value may have any of the forms acceptable to B<Tk_GetPixels>.
534 When computing how large a window it needs, the widget will add
535 this amount to the height it would normally need (as determined by
536 the height of the things displayed in the widget); if the geometry
537 manager can satisfy this request, the widget will end up with extra
538 internal space above and/or below what it displays inside.
539 Most widgets only use this option for padding text: if they are
540 displaying a bitmap or image, then they usually ignore padding
541 options.
542
543 =item Name: B<relief>
544
545 =item Class: B<Relief>
546
547 =item Switch: B<-relief>
548
549 Specifies the 3-D effect desired for the widget. Acceptable
550 values are B<raised>, B<sunken>, B<flat>, B<ridge>,
551 B<solid>, and B<groove>.
552 The value
553 indicates how the interior of the widget should appear relative
554 to its exterior; for example, B<raised> means the interior of
555 the widget should appear to protrude from the screen, relative to
556 the exterior of the widget.
557
558 =item Name: B<repeatDelay>
559
560 =item Class: B<RepeatDelay>
561
562 =item Switch: B<-repeatdelay>
563
564 Specifies the number of milliseconds a button or key must be held
565 down before it begins to auto-repeat. Used, for example, on the
566 up- and down-arrows in scrollbars.
567
568 =item Name: B<repeatInterval>
569
570 =item Class: B<RepeatInterval>
571
572 =item Switch: B<-repeatinterval>
573
574 Used in conjunction with B<repeatDelay>: once auto-repeat
575 begins, this option determines the number of milliseconds between
576 auto-repeats.
577
578 =item Name: B<selectBackground>
579
580 =item Class: B<Foreground>
581
582 =item Switch: B<-selectbackground>
583
584 Specifies the background color to use when displaying selected
585 items.
586
587 =item Name: B<selectBorderWidth>
588
589 =item Class: B<BorderWidth>
590
591 =item Switch: B<-selectborderwidth>
592
593 Specifies a non-negative value indicating the width
594 of the 3-D border to draw around selected items.
595 The value may have any of the forms acceptable to B<Tk_GetPixels>.
596
597 =item Name: B<selectForeground>
598
599 =item Class: B<Background>
600
601 =item Switch: B<-selectforeground>
602
603 Specifies the foreground color to use when displaying selected
604 items.
605
606 =item Name: B<setGrid>
607
608 =item Class: B<SetGrid>
609
610 =item Switch: B<-setgrid>
611
612 Specifies a boolean value that determines whether this widget controls the
613 resizing grid for its top-level window.
614 This option is typically used in text widgets, where the information
615 in the widget has a natural size (the size of a character) and it makes
616 sense for the window's dimensions to be integral numbers of these units.
617 These natural window sizes form a grid.
618 If the B<setGrid> option is set to true then the widget will
619 communicate with the window manager so that when the user interactively
620 resizes the top-level window that contains the widget, the dimensions of
621 the window will be displayed to the user in grid units and the window
622 size will be constrained to integral numbers of grid units.
623 See L<Tk::Wm/"GRIDDED GEOMETRY MANAGEMENT">
624 for more details.
625
626 =item Name: B<takeFocus>
627
628 =item Class: B<TakeFocus>
629
630 =item Switch: B<-takefocus>
631
632 Determines whether the window accepts the focus during keyboard
633 traversal (e.g., Tab and Shift-Tab).
634 Before setting the focus to a window, the traversal scripts
635 consult the value of the B<takeFocus> option.
636 A value of B<0> means that the window should be skipped entirely
637 during keyboard traversal.
638 B<1> means that the window should receive the input
639 focus as long as it is viewable (it and all of its ancestors are mapped).
640 An empty value for the option means that the traversal scripts make
641 the decision about whether or not to focus on the window: the current
642 algorithm is to skip the window if it is
643 disabled, if it has no key bindings, or if it is not viewable.
644 If the value has any other form, then the traversal scripts take
645 the value, append the name of the window to it (with a separator space),
646 and evaluate the resulting string as a Callback.
647 The script must return B<0>, B<1>, or an empty string: a
648 B<0> or B<1> value specifies whether the window will receive
649 the input focus, and an empty string results in the default decision
650 described above.
651 Note: this interpretation of the option is defined entirely by
652 the Callbacks that implement traversal: the widget implementations
653 ignore the option entirely, so you can change its meaning if you
654 redefine the keyboard traversal scripts.
655
656 =item Name: B<text>
657
658 =item Class: B<Text>
659
660 =item Switch: B<-text>
661
662 Specifies a string to be displayed inside the widget. The way in which
663 the string is displayed depends on the particular widget and may be
664 determined by other options, such as B<anchor> or B<justify>.
665
666 =item Name: B<textVariable>
667
668 =item Class: B<Variable>
669
670 =item Switch: B<-textvariable>
671
672 Specifies the name of a variable. The value of the variable is a text
673 string to be displayed inside the widget; if the variable value changes
674 then the widget will automatically update itself to reflect the new value.
675 The way in which the string is displayed in the widget depends on the
676 particular widget and may be determined by other options, such as
677 B<anchor> or B<justify>.
678
679 =item Name: B<tile>
680
681 =item Class: B<Tile>
682
683 =item Switch: B<-tile>
684
685 Specifies image used to display the widget. If image is the empty
686 string, then the normal background color is displayed.
687
688 =item Name: B<troughColor>
689
690 =item Class: B<Background>
691
692 =item Switch: B<-troughcolor>
693
694 Specifies the color to use for the rectangular trough areas
695 in widgets such as scrollbars and scales.
696
697 =item Name: B<troughTile>
698
699 =item Class: B<Tile>
700
701 =item Switch: B<-troughtile>
702
703 Specifies image used to display in the rectangular trough areas
704 in widgets such as scrollbars and scales.
705
706 =item Name: B<underline>
707
708 =item Class: B<Underline>
709
710 =item Switch: B<-underline>
711
712 Specifies the integer index of a character to underline in the widget.
713 This option is used by the default bindings to implement keyboard
714 traversal for menu buttons and menu entries.
715 0 corresponds to the first character of the text displayed in the
716 widget, 1 to the next character, and so on.
717
718 =item Name: B<wrapLength>
719
720 =item Class: B<WrapLength>
721
722 =item Switch: B<-wraplength>
723
724 For widgets that can perform word-wrapping, this option specifies
725 the maximum line length.
726 Lines that would exceed this length are wrapped onto the next line,
727 so that no line is longer than the specified length.
728 The value may be specified in any of the standard forms for
729 screen distances.
730 If this value is less than or equal to 0 then no wrapping is done: lines
731 will break only at newline characters in the text.
732
733 =item Name: B<xScrollCommand>
734
735 =item Class: B<ScrollCommand>
736
737 =item Switch: B<-xscrollcommand>
738
739 Specifies a callback used to communicate with horizontal
740 scrollbars.
741 When the view in the widget's window changes (or
742 whenever anything else occurs that could change the display in a
743 scrollbar, such as a change in the total size of the widget's
744 contents), the widget will
745 make a callback passing two numeric arguments in addition to
746 any specified in the callback.
747 Each of the numbers is a fraction between 0 and 1, which indicates
748 a position in the document. 0 indicates the beginning of the document,
749 1 indicates the end, .333 indicates a position one third the way through
750 the document, and so on.
751 The first fraction indicates the first information in the document
752 that is visible in the window, and the second fraction indicates
753 the information just after the last portion that is visible.
754 Typically the
755 B<xScrollCommand> option consists of the scrollbar widget object
756 and the method ``set'' i.e. [B<set> =E<gt> I<$sb>]:
757 this will cause the scrollbar to be updated whenever the view in the window changes.
758 If this option is not specified, then no command will be executed.
759
760 =item Name: B<yScrollCommand>
761
762 =item Class: B<ScrollCommand>
763
764 =item Switch: B<-yscrollcommand>
765
766 Specifies a calback used to communicate with vertical
767 scrollbars. This option is treated in the same way as the
768 B<xScrollCommand> option, except that it is used for vertical
769 scrollbars and is provided by widgets that support vertical scrolling.
770 See the description of B<xScrollCommand> for details
771 on how this option is used.
772
773 =back
774
775 =head1 SEE ALSO
776
777 L<Tk::option>
778 L<Tk::callbacks>
779 L<Tk::ConfigSpecs>
780 L<Tk_GetPixels|Tk::pTk::GetPixels>
781
782 =head1 KEYWORDS
783
784 class, name, standard option, switch
785
786 =cut
787