command

Specifies the body of a command to invoke to change the view in the widget associated with the scrollbar.

When a user requests a view change by manipulating the scrollbar, a command is invoked. The actual command consists of this option followed by additional information as described later.

This option should have a value of this kind:

(lambda (cmd num) (#<widget> 'xview cmd num))

or

(lambda (cmd num) (#<widget> 'yview cmd num))

depending on scrolling is horizontal or vertical.

All scrollable widgets have xview and yview commands that take exactly the additional arguments appended.


© Author | Home | Sitemap