📄 scrolledwindow.html
字号:
<HTML><HEAD><TITLE>ScrolledWindow</TITLE></HEAD><BODY BGCOLOR=white><DL><DT><I><A HREF="#descr">NAME</A></I></DT><DD><B>ScrolledWindow</B> - Generic scrolled widget</DD></DL><DL><DT><I>CREATION</I></DT><DD><A HREF="#descr"><B>ScrolledWindow</B></A> <I>pathName</I> ?<I>option value...</I>?</DD></DL><DL><DT><I>STANDARD OPTIONS</I></DT><DD><TABLE CELLSPACING=0 CELLSPACING=0 BORDER=0><TR><TD> <A HREF="options.htm#M-background">-background or -bg</A></TD><TD> <A HREF="options.htm#M-borderwidth">-borderwidth or -bd</A></TD></TR><TR><TD> <A HREF="options.htm#M-relief">-relief</A></TR></TABLE></DD></DL><DL><DT><I><A HREF="#wso">WIDGET-SPECIFIC OPTIONS</A></I></DT><DD><TABLE CELLSPACING=0 CELLSPACING=0 BORDER=0><TR><TD> <A HREF="#-auto">-auto</A></TR><TD> <A HREF="#-scrollbar">-scrollbar</A></TR></TR></TABLE></DD></DL><DL><DT><I><A HREF="#wc">WIDGET COMMAND</A></I></DT><DD><I>pathName</I> <A HREF="#cget"><B>cget</B></A> <I>option</I></DD><DD><I>pathName</I> <A HREF="#configure"><B>configure</B></A> ?<I>option</I>? ?<I>value</I> <I>option</I> <I>value</I> ...?</DD><DD><I>pathName</I> <A HREF="#getframe"><B>getframe</B></A></DD><DD><I>pathName</I> <A HREF="#setwidget"><B>setwidget</B></A> <I>widget</I></DD></DL><BR><HR WIDTH="100%"><BR><B><A NAME="descr"></A>DESCRIPTION</B><BR><P>ScrolledWindow enables user to create easily a widget with its scrollbar.Scrollbars are created by ScrolledWindow and scroll commands are automatically associated toa scrollable widget with <B>ScrolledWindow::setwidget</B>.</P><BR><HR WIDTH="50%"><BR><B><A NAME="wso">WIDGET-SPECIFIC OPTIONS</A></B><BR><DL><DT><A NAME="-auto"><B>-auto</B></A></DT><DD>Specifies the desired auto managed scrollbar:<LI><B>none</B> means scrollbar are always drawn<LI><B>horizontal</B> means horizontal scrollbar is drawn as needed<LI><B>vertical</B> means vertical scrollbar is drawn as needed<LI><B>both</B> means horizontal and vertical scrollbars are drawn as needed<LI><B>horizontal</B> means horizontal scrollbar is drawn as needed</DD></DL><DL><DT><A NAME="-scrollbar"><B>-scrollbar (read-only)</B></A></DT><DD>Specifies the desired scrollbar: <B>none</B>, <B>horizontal</B>, <B>vertical</B>or <B>both</B>. This option is not modifiable with <B>ScrolledWindow::configure</B>.</DD></DL><HR WIDTH="50%"><BR><B><A NAME="wc">WIDGET COMMAND</A></B><BR><DL><DT><A NAME="cget"><I>pathName</I> <B>cget</B></A> <I>option</I></DT><DD>Returns the current value of the configuration option given by <I>option</I>.<I>Option</I> may have any of the values accepted by the creation command.</DD></DL><DL><DT><A NAME="configure"><I>pathName</I> <B>configure</B></A> ?<I>option</I>? ?<I>value</I> <I>option</I> <I>value</I> ...?</DT><DD>Query or modify the configuration options of the widget. If no <I>option</I> is specified,returns a list describing all of the available options for <I>pathName</I>.If <I>option</I> is specified with no <I>value</I>, then the command returns a listdescribing the one named <I>option</I> (this list will be identical to the correspondingsublist of the value returned if no <I>option</I> is specified). If one ormore <I>option-value</I> pairs are specified, then the command modifies the given widgetoption(s) to have the given value(s); in this case the command returns an empty string.<I>Option</I> may have any of the values accepted by the creation command.Read-only options are not be modified.</DD></DL><DL><DT><A NAME="getframe"><I>pathName</I> <B>getframe</B></A></DT><DD>Return the pathname of the frame where the scrolled widget should be created. This commandis no longer needed. You can directly create the scrolled widget as the childof <I>pathName</I>.</DD></DL><DL><DT><A NAME="setwidget"><I>pathName</I> <B>setwidget</B></A> <I>widget</I></DT><DD>Associate <I>widget</I> to the the scrollbars. <I>widget</I> is packedin with option <B>expand</B> to <I>yes</I> and <B>fill</B> to <I>both</I>.<I>widget</I> must be a scrollable widget, i.e. have the options<B>xscrollcommand</B>/<B>yscrollcommand</B> and the command <B>xview</B>/<B>yview</B>,such as canvas or text.</DD></DL></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -