⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 getscroll.3

📁 linux系统下的音频通信
💻 3
字号:
'\"'\" Copyright (c) 1994 The Regents of the University of California.'\" Copyright (c) 1994-1996 Sun Microsystems, Inc.'\"'\" See the file "license.terms" for information on usage and redistribution'\" of this file, and for a DISCLAIMER OF ALL WARRANTIES.'\" '\" SCCS: @(#) GetScroll.3 1.7 96/03/26 18:12:29'\" .so man.macros.TH Tk_GetScrollInfo 3 4.0 Tk "Tk Library Procedures".BS.SH NAMETk_GetScrollInfo \- parse arguments for scrolling commands.SH SYNOPSIS.nf\fB#include <tk.h>\fR.spint\fBTk_GetScrollInfo(\fIinterp, argc, argv, dblPtr, intPtr\fB)\fR.SH ARGUMENTS.AS "Tcl_Interp" *dblPtr.AP Tcl_Interp *interp inInterpreter to use for error reporting..AP int argc inNumber of strings in \fIargv\fR array..AP char *argv[] inArgument strings.  These represent the entire widget command, ofwhich the first word is typically the widget name and the secondword is typically \fBxview\fR or \fByview\fR.  This procedure parsesarguments starting with \fIargv\fR[2]..AP double *dblPtr outFilled in with fraction from \fBmoveto\fR option, if any..AP int *intPtr outFilled in with line or page count from \fBscroll\fR option, if any.The value may be negative..BE.SH DESCRIPTION.PP\fBTk_GetScrollInfo\fR parses the arguments expected by widgetscrolling commands such as \fBxview\fR and \fByview\fR.It receives the entire list of words that make up a widget commandand parses the words starting with \fIargv\fR[2].The words starting with \fIargv\fR[2] must have one of the following forms:.CS\fBmoveto \fIfraction\fR\fBscroll \fInumber\fB units\fR\fBscroll \fInumber\fB pages\fR.CE.LPAny of the \fBmoveto\fR, \fBscroll\fR, \fBunits\fR, and \fBpages\fRkeywords may be abbreviated.If \fIargv\fR has the \fBmoveto\fR form, \fBTK_SCROLL_MOVETO\fRis returned as result and \fI*dblPtr\fR is filled in with the\fIfraction\fR argument to the command, which must be a proper realvalue.If \fIargv\fR has the \fBscroll\fR form, \fBTK_SCROLL_UNITS\fRor \fBTK_SCROLL_PAGES\fR is returned and \fI*intPtr\fR is filledin with the \fInumber\fR value, which must be a proper integer.If an error occurs in parsing the arguments, \fBTK_SCROLL_ERROR\fRis returned and an error message is left in \fIinterp->result\fR..SH KEYWORDSparse, scrollbar, scrolling command, xview, yview

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -