|
NAMETk::Autoscroll - space invaders-like scrollingSYNOPSISuse Tk::Autoscroll; Tk::Autoscroll::Init($widget); DESCRIPTIONThis lets you enable scrolling similar to the one in Microsoft Explorer. Press the middle mouse button and then move the mouse to scroll the widget. A further press on the middle button stops the scrolling.It is also possible to use the autoscrolling feature for all Scrolled() widgets automatically. To do so, you have to write use Tk::Autoscroll 'as_default'; FUNCTIONSInit($widget, [options ...])Possible options:
If you want to apply any "Init" options to all widgets when using "as_default", then you can define the global variable @default_args. Example: @Tk::Autoscroll::default_args = (-stoptrigger => '<ButtonRelease-2>'); Reset($widget)Remove the binding, scrolling is not possible anymore.BUGSThe import() function could be better implemented, i.e. avoiding the duplicate of Scrolled() definition.Any motion binding for the widget is overwritten. Reset() should probably restore all used bindings. SEE ALSOTk, Tk::ScrolledAUTHORSlaven Rezic <slaven@rezic.de>COPYRIGHTCopyright (c) 1999,2001,2002 Slaven Rezic. All rights reserved. This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Visit the GSP FreeBSD Man Page Interface. |