home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2000 May
/
Chip_2000-05_cd1.bin
/
zkuste
/
Perl
/
ActivePerl-5.6.0.613.msi
/
䆊䌷䈹䈙䏵-䞅䞆䞀㡆䞃䄦䠥
/
_845440ad3e2adb4918aa52bfd96b2fae
< prev
next >
Wrap
Text File
|
2000-03-23
|
4KB
|
116 lines
<HTML>
<HEAD>
<TITLE>Tk::Scrolled - Create a widget with attached scrollbar</TITLE>
<LINK REL="stylesheet" HREF="../../../Active.css" TYPE="text/css">
<LINK REV="made" HREF="mailto:">
</HEAD>
<BODY>
<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=100%>
<TR><TD CLASS=block VALIGN=MIDDLE WIDTH=100% BGCOLOR="#cccccc">
<STRONG><P CLASS=block> Tk::Scrolled - Create a widget with attached scrollbar</P></STRONG>
</TD></TR>
</TABLE>
<A NAME="__index__"></A>
<!-- INDEX BEGIN -->
<UL>
<LI><A HREF="#name">NAME</A></LI><LI><A HREF="#supportedplatforms">SUPPORTED PLATFORMS</A></LI>
<LI><A HREF="#synopsis">SYNOPSIS</A></LI>
<LI><A HREF="#description">DESCRIPTION</A></LI>
<LI><A HREF="#options">OPTIONS</A></LI>
<LI><A HREF="#advertised subwidgets">ADVERTISED SUBWIDGETS</A></LI>
<LI><A HREF="#bugs">BUGS</A></LI>
<LI><A HREF="#see also">SEE ALSO</A></LI>
<LI><A HREF="#keywords">KEYWORDS</A></LI>
</UL>
<!-- INDEX END -->
<HR>
<P>
<H1><A NAME="name">NAME</A></H1>
<P>Tk::Scrolled - Create a widget with attached <CODE>scrollbar(s)</CODE></P>
<P>
<HR>
<H1><A NAME="supportedplatforms">SUPPORTED PLATFORMS</A></H1>
<UL>
<LI>Linux</LI>
<LI>Solaris</LI>
<LI>Windows</LI>
</UL>
<HR>
<H1><A NAME="synopsis">SYNOPSIS</A></H1>
<P> <EM>$whatever</EM> = <EM>$parent</EM>-><STRONG>Scrolled</STRONG>(<EM>Whatever</EM> ?,<STRONG>-scrollbars</STRONG>=><EM>where</EM>? ?,...?);</P>
<P>
<HR>
<H1><A NAME="description">DESCRIPTION</A></H1>
<P>To stop a flood of <STRONG>ScrlWhatever</STRONG> widgets Perl/Tk introcuded the special
constructor <STRONG>Scrolled</STRONG>. <STRONG>Scrolled</STRONG> creates a widget of the given Class
<EM>Whatever</EM> with attached <A HREF="../../../site/lib/Tk/Scrollbar.html">scrollbar(s)</A>.</P>
<P>
<HR>
<H1><A NAME="options">OPTIONS</A></H1>
<P>All options beside <STRONG>-scrollbars</STRONG> explained below are passed to
the <EM>Whatever</EM> widget constructor.</P>
<DL>
<DT><STRONG><A NAME="item_%2Dscrollbars">-scrollbars</A></STRONG><BR>
<DD>
Expects as argument the position where the scrollbars should be
created: <STRONG>w</STRONG>, <STRONG>e</STRONG> or <STRONG>n</STRONG>, <STRONG>s</STRONG> or a combination of
them. If the one or both positions are prefixed with <STRONG>o</STRONG> the
scrollbar will only show up if there is a 'real' need to scroll.
<P></P></DL>
<P>
<HR>
<H1><A NAME="advertised subwidgets">ADVERTISED SUBWIDGETS</A></H1>
<P>See <A HREF="../../../site/lib/Tk/mega.html#subwidget">Subwidget in the Tk::mega manpage</A> how to use advertised widgets.</P>
<DL>
<DT><STRONG><A NAME="item_scrolled">scrolled</A></STRONG><BR>
<DD>
the scrolled widget
<P></P>
<DT><STRONG><A NAME="item_widget"><EM>widget</EM></A></STRONG><BR>
<DD>
same as <STRONG>scrolled</STRONG> above. <EM>widget</EM> is the kind of widget passed
to scrolled as first argument in all lowercase.
<P></P>
<DT><STRONG><A NAME="item_xscrollbar">xscrollbar</A></STRONG><BR>
<DD>
the <STRONG>Scrollbar</STRONG> widget used for horizontal scrolling (if it exists)
<P></P>
<DT><STRONG><A NAME="item_yscrollbar">yscrollbar</A></STRONG><BR>
<DD>
the <STRONG>Scrollbar</STRONG> widget used for vertical scrolling (if it exists)
<P></P></DL>
<P>
<HR>
<H1><A NAME="bugs">BUGS</A></H1>
<P>If a widget does not support <EM>-{x,y}scrollcommand</EM> options,
<STRONG>Scrolled</STRONG> does not complain if the specified widget class does
not support them. E.g.,</P>
<P> <EM>$parent</EM>-><STRONG>Scrolled</STRONG>(<STRONG>'Button'</STRONG>, ...)</P>
<P>One does not get an error message or warning when one tries to
configure scrollbars after the widget construction:</P>
<P> <EM>$ascrolled</EM>-><STRONG>configure</STRONG>(<STRONG>-scrollbars</STRONG> => <STRONG>'e'</STRONG>);</P>
<P>
<HR>
<H1><A NAME="see also">SEE ALSO</A></H1>
<P><A HREF="../../../site/lib/Tk/Scrollbar.html">Tk::Scrollbar</A></P>
<P>
<HR>
<H1><A NAME="keywords">KEYWORDS</A></H1>
<P>scrolled, scrollbar</P>
<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=100%>
<TR><TD CLASS=block VALIGN=MIDDLE WIDTH=100% BGCOLOR="#cccccc">
<STRONG><P CLASS=block> Tk::Scrolled - Create a widget with attached scrollbar</P></STRONG>
</TD></TR>
</TABLE>
</BODY>
</HTML>