source: tol/tolbase/lib/autoscroll/autoscroll.man @ 567b369

1941-docker-image-to-testdevel
Last change on this file since 567b369 was 24a229c, checked in by Jorge Pérez <josp.jorge@…>, 15 years ago

refs #703, autoscroll is used by wtree

git-svn-id: ​https://www.tol-project.org/svn/tolp/trunk@3877 be4846ae-f051-483a-831f-b64e7d08527f

  • Property mode set to 100644
File size: 1.9 KB
Line 
1[comment {-*- tcl -*- doctools manpage}]
2[manpage_begin autoscroll n 1.1]
3[moddesc   {Automatic mapping of scrollbars}]
4[titledesc {Provides for a scrollbar to automatically mapped and unmapped as needed}]
5[require Tcl]
6[require autoscroll [opt 1.1]]
7[description]
8
9This package allows scrollbars to be mapped and
10unmapped as needed depending on the size and
11content of the scrollbars scrolled widget. The
12scrollbar must be managed by either pack or grid,
13other geometry managers are not supported.
14
15[para]
16
17When managed by pack, any geometry changes made in the
18scrollbars parent between the time a scrollbar is
19unmapped, and when it is mapped will be lost. It is
20an error to destroy any of the scrollbars siblings while the
21scrollbar is unmapped. When managed by grid, if anything
22becomes gridded in the same row and column the scrollbar
23occupied it will be replaced by the scrollbar when remapped.
24
25[para]
26
27This package may be used on any scrollbar-like widget
28as long as it supports the [const set] subcommand in the same
29style as scrollbar. If the [const set] subcommand is not used
30then this package will have no effect.
31
32[para]
33
34[list_begin definitions]
35
36[call [cmd ::autoscroll::autoscroll] [arg scrollbar]]
37
38Arranges for the already existing scrollbar [const scrollbar]
39to be mapped and unmapped as needed.
40
41[call [cmd ::autoscroll::unautoscroll] [arg scrollbar]]
42
43Returns the named scrollbar to its original static state.
44
45[call [cmd ::autoscroll::wrap]]
46
47Arranges for all scrollbars created after this command is run
48to be automatically mapped and unmapped as needed.
49
50[call [cmd ::autoscroll::unwrap]]
51
52Turns off the automatic autoscrolling of all new scrollbars.
53Does not effect existing scrollbars
54
55[list_end]
56
57[example {
58text .t -yscrollcommand ".scrolly set"
59scrollbar .scrolly -orient v -command ".t yview"
60pack .scrolly -side right -fill y
61pack .t -side left -fill both -expand 1
62::autoscroll::autoscroll .scrolly
63}]
64
65
66[keywords scroll scrollbar]
67[manpage_end]
Note: See TracBrowser for help on using the repository browser.