home *** CD-ROM | disk | FTP | other *** search
-
- <HTML>
- <HEAD>
- <TITLE>Tk::Derived - Base class for widgets derived from others</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::Derived - Base class for widgets derived from others</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="#see also">SEE ALSO</A></LI>
- </UL>
- <!-- INDEX END -->
-
- <HR>
- <P>
- <H1><A NAME="name">NAME</A></H1>
- <P>Tk::Derived - Base class for widgets derived from others</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>
- <PRE>
- package Tk::Whatever;
- require Tk::Something;
- require Tk::Derived;</PRE>
- <PRE>
- @ISA = qw(Tk::Derived Tk::Something);</PRE>
- <PRE>
- sub Populate
- {
- my ($cw,$args) = @_;
- ...
- $cw->SUPER::Populate($args);
- $cw->ConfigSpecs(...);
- ...
- }</PRE>
- <P>
- <HR>
- <H1><A NAME="description">DESCRIPTION</A></H1>
- <P>Tk::Derived is used with perl5's multiple inheritance to override some
- methods normally inherited from Tk::Widget.</P>
- <P>Tk::Derived should precede any Tk widgets in the class's @ISA.</P>
- <P>Tk::Derived's main purpose is to apply wrappers to <CODE>configure</CODE> and <CODE>cget</CODE>
- methods of widgets to allow the derived widget to add to or modify behaviour
- of the configure options supported by the base widget.</P>
- <P>The derived class should normally override the <CODE>Populate</CODE> method provided
- by Tk::Derived and call <A HREF="#item_ConfigSpecs"><CODE>ConfigSpecs</CODE></A> to declare configure options.</P>
- <P>The public methods provided by Tk::Derived are as follows:</P>
- <DL>
- <DT><STRONG><A NAME="item_ConfigSpecs">->ConfigSpecs(-<EM>key</EM> => [<EM>kind</EM>, <EM>name</EM>, <EM>Class</EM>, <EM>default</EM>], ...)</A></STRONG><BR>
- <DD>
- </DL>
- <P>
- <HR>
- <H1><A NAME="see also">SEE ALSO</A></H1>
- <P><A HREF="../../../Tk/ConfigSpecs.html">Tk::ConfigSpecs</A>
- <A HREF="../../../site/lib/Tk/mega.html">Tk::mega</A></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::Derived - Base class for widgets derived from others</P></STRONG>
- </TD></TR>
- </TABLE>
-
- </BODY>
-
- </HTML>
-