diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2023-11-16 13:57:27 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2023-11-16 13:57:27 (GMT) |
commit | a416d2e8f5cf471d4aaa92c75ca81150dba384c3 (patch) | |
tree | 102ecfa52f224ae9740a18f2a419d8677268370c /doc | |
parent | ef1c0b41419a99d78bf51ed3224dfa63d6968b55 (diff) | |
download | tk-a416d2e8f5cf471d4aaa92c75ca81150dba384c3.zip tk-a416d2e8f5cf471d4aaa92c75ca81150dba384c3.tar.gz tk-a416d2e8f5cf471d4aaa92c75ca81150dba384c3.tar.bz2 |
Remove legacy "pack" and "scrollbar" syntax
Diffstat (limited to 'doc')
-rw-r--r-- | doc/scrollbar.n | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/doc/scrollbar.n b/doc/scrollbar.n index 4f808f4..838dac1 100644 --- a/doc/scrollbar.n +++ b/doc/scrollbar.n @@ -236,46 +236,6 @@ the top or left of the window, or \-1, which means that one unit should scroll off the bottom or right of the window. Fractional numbers are rounded away from 0, so scrolling 0.001 units has the same effect as scrolling 1 unit. -.SH "OLD COMMAND SYNTAX" -.PP -In versions of Tk before 4.0, the \fBset\fR and \fBget\fR widget -commands used a different form. -This form is still supported for backward compatibility, but it -is deprecated. -In the old command syntax, the \fBset\fR widget command has the -following form: -.TP -\fIpathName \fBset \fItotalUnits windowUnits firstUnit lastUnit\fR -In this form the arguments are all integers. -\fITotalUnits\fR gives the total size of the object being displayed in the -associated widget. The meaning of one unit depends on the associated -widget; for example, in a text editor widget units might -correspond to lines of -text. \fIWindowUnits\fR indicates the total number of units that -can fit in the associated window at one time. \fIFirstUnit\fR -and \fIlastUnit\fR give the indices of the first and last units -currently visible in the associated window (zero corresponds to the -first unit of the object). -.LP -Under the old syntax the \fBget\fR widget command returns a list -of four integers, consisting of the \fItotalUnits\fR, \fIwindowUnits\fR, -\fIfirstUnit\fR, and \fIlastUnit\fR values from the last \fBset\fR -widget command. -.PP -The commands generated by scrollbars also have a different form -when the old syntax is being used: -.TP -\fIprefix\fR \fIunit\fR -\fIUnit\fR is an integer that indicates what should appear at -the top or left of the associated widget's window. -It has the same meaning as the \fIfirstUnit\fR and \fIlastUnit\fR -arguments to the \fBset\fR widget command. -.LP -The most recent \fBset\fR widget command determines whether or not -to use the old syntax. -If it is given two real arguments then the new syntax will be -used in the future, and if it is given four integer arguments then -the old syntax will be used. .SH BINDINGS .PP Tk automatically creates class bindings for scrollbars that give them |