From 83b61ebd6b046f2806aa6c1dfa37d392259e65fb Mon Sep 17 00:00:00 2001 From: csaba Date: Tue, 9 Jan 2024 19:36:42 +0000 Subject: Scrolling-related improvements in the documentation. --- doc/canvas.n | 3 ++- doc/listbox.n | 3 ++- doc/scrollbar.n | 4 ++-- doc/ttk_widget.n | 3 ++- 4 files changed, 8 insertions(+), 5 deletions(-) diff --git a/doc/canvas.n b/doc/canvas.n index 95f073c..cda7706 100644 --- a/doc/canvas.n +++ b/doc/canvas.n @@ -1189,7 +1189,8 @@ area is off-screen to the top. . This command adjusts the view in the window up or down according to \fInumber\fR and \fIwhat\fR. -\fINumber\fR must be an integer. +\fINumber\fR must be an integer or a float, but if it is a float then +it is converted to an integer, rounded away from 0. \fIWhat\fR must be either \fBpages\fR or \fBunits\fR. If \fIwhat\fR is \fBpages\fR then the view adjusts in units of nine-tenths the window's height. diff --git a/doc/listbox.n b/doc/listbox.n index fa24ec7..a047be6 100644 --- a/doc/listbox.n +++ b/doc/listbox.n @@ -435,7 +435,8 @@ way through the listbox, and so on. . This command adjusts the view in the window up or down according to \fInumber\fR and \fIwhat\fR. -\fINumber\fR must be an integer. +\fINumber\fR must be an integer or a float, but if it is a float then +it is converted to an integer, rounded away from 0. \fIWhat\fR must be either \fBpages\fR or \fBunits\fR. If \fIwhat\fR is \fBpages\fR then the view adjusts by \fInumber\fR screenfuls. diff --git a/doc/scrollbar.n b/doc/scrollbar.n index 838dac1..fee959d 100644 --- a/doc/scrollbar.n +++ b/doc/scrollbar.n @@ -203,7 +203,7 @@ generated from the scrollbar's \fB\-command\fR option. The command may take any of the following forms. In each case, \fIprefix\fR is the contents of the \fB\-command\fR option, which usually has a form like -.QW \fB.t yview\fR . +.QW "\fB.t yview\fR" . .TP \fIprefix \fBmoveto \fIfraction\fR . @@ -223,7 +223,7 @@ it is slightly less than what fits in the window, so that there is a slight overlap between the old and new views. \fINumber\fR is either 1, which means the next page should become visible, or \-1, which means that the previous page should -become visible. Fractional number are rounded away from 0, so +become visible. Fractional numbers are rounded away from 0, so scrolling 0.001 pages has the same effect as scrolling 1 page. .TP \fIprefix \fBscroll \fInumber \fBunits\fR diff --git a/doc/ttk_widget.n b/doc/ttk_widget.n index 635c782..7605260 100644 --- a/doc/ttk_widget.n +++ b/doc/ttk_widget.n @@ -298,7 +298,8 @@ way through the content appears at the top edge of the window. \fIpathName \fByview scroll \fInumber what\fR This command shifts the view in the window up or down according to \fInumber\fR and \fIwhat\fR. -\fINumber\fR must be an integer. +\fINumber\fR must be an integer or a float, but if it is a float then +it is converted to an integer, rounded away from 0. \fIWhat\fR must be either \fBpages\fR or \fBunits\fR. '\" or an abbreviation of one of these, but we don't document that. If \fIwhat\fR is -- cgit v0.12