home *** CD-ROM | disk | FTP | other *** search
/ Chip 2000 May / Chip_2000-05_cd1.bin / zkuste / Perl / ActivePerl-5.6.0.613.msi / 䆊䌷䈹䈙䏵-䞅䞆䞀㡆䞃䄦䠥 / _26033f95e645ace4e10c372da6dee7e5 < prev    next >
Text File  |  2000-03-23  |  4KB  |  110 lines

  1.  
  2. <HTML>
  3. <HEAD>
  4. <TITLE>Tk::Table - Scrollable 2 dimensional table of Tk widgets</TITLE>
  5. <LINK REL="stylesheet" HREF="../../../Active.css" TYPE="text/css">
  6. <LINK REV="made" HREF="mailto:">
  7. </HEAD>
  8.  
  9. <BODY>
  10. <TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=100%>
  11. <TR><TD CLASS=block VALIGN=MIDDLE WIDTH=100% BGCOLOR="#cccccc">
  12. <STRONG><P CLASS=block> Tk::Table - Scrollable 2 dimensional table of Tk widgets</P></STRONG>
  13. </TD></TR>
  14. </TABLE>
  15.  
  16. <A NAME="__index__"></A>
  17. <!-- INDEX BEGIN -->
  18.  
  19. <UL>
  20.  
  21.     <LI><A HREF="#name">NAME</A></LI><LI><A HREF="#supportedplatforms">SUPPORTED PLATFORMS</A></LI>
  22.  
  23.     <LI><A HREF="#synopsis">SYNOPSIS</A></LI>
  24.     <LI><A HREF="#description">DESCRIPTION</A></LI>
  25.     <LI><A HREF="#bugs / snags / possible enhancements">BUGS / Snags / Possible enhancements</A></LI>
  26. </UL>
  27. <!-- INDEX END -->
  28.  
  29. <HR>
  30. <P>
  31. <H1><A NAME="name">NAME</A></H1>
  32. <P>Tk::Table - Scrollable 2 dimensional table of Tk widgets</P>
  33. <P>
  34. <HR>
  35. <H1><A NAME="supportedplatforms">SUPPORTED PLATFORMS</A></H1>
  36. <UL>
  37. <LI>Linux</LI>
  38. <LI>Solaris</LI>
  39. <LI>Windows</LI>
  40. </UL>
  41. <HR>
  42. <H1><A NAME="synopsis">SYNOPSIS</A></H1>
  43. <PRE>
  44.   use Tk::Table;</PRE>
  45. <PRE>
  46.   $table = $parent->Table(-rows => number,
  47.                           -columns => number,
  48.                           -scrollbars => anchor,
  49.                           -fixedrows => number,
  50.                           -fixedcolumns => number,
  51.                           -takefocus => boolean);</PRE>
  52. <PRE>
  53.   $widget = $table->Button(...);</PRE>
  54. <PRE>
  55.   $old = $table->put($row,$col,$widget);
  56.   $old = $table->put($row,$col,"Text");  # simple Label
  57.   $widget = $table->get($row,$col);</PRE>
  58. <PRE>
  59.   $cols = $table->totalColumns;
  60.   $rows = $table->totalRows;</PRE>
  61. <PRE>
  62.   $table->see($widget);
  63.   $table->see($row,$col);</PRE>
  64. <PRE>
  65.   ($row,$col) = $table->Posn($widget);</PRE>
  66. <P>
  67. <HR>
  68. <H1><A NAME="description">DESCRIPTION</A></H1>
  69. <P>Tk::Table is an all-perl widget/geometry manager which allows a two dimensional
  70. table of arbitary perl/Tk widgets to be displayed.</P>
  71. <P>Entries in the Table are simply ordinary perl/Tk widgets. They should
  72. be created with the Table as their parent. Widgets are positioned in the
  73. table using:</P>
  74. <PRE>
  75.  $table->put($row,$col,$widget)</PRE>
  76. <P>All the widgets in each column are set to the same width - the requested
  77. width of the widest widget in the column.
  78. Likewise, all the widgets in each row are set to the same height - the requested
  79. height of the tallest widget in the column.</P>
  80. <P>A number of rows and/or columns can be marked as 'fixed' - and so can serve
  81. as 'headings' for the remainder the rows which are scrollable.</P>
  82. <P>The requested size of the table as a whole is such that the number of rows
  83. specified by -rows (default 10), and number of columns specified by -columns
  84. (default 10) can be displayed.</P>
  85. <P>If the Table is told it can take the keyboard focus then cursor and scroll
  86. keys scroll the displayed widgets.</P>
  87. <P>The Table will create and manage its own scrollbars if requested via
  88. -scrollbars.</P>
  89. <P>The Tk::Table widget is derived from a Tk::Frame, so inherits all its
  90. configure options.</P>
  91. <P>
  92. <HR>
  93. <H1><A NAME="bugs / snags / possible enhancements">BUGS / Snags / Possible enhancements</A></H1>
  94. <UL>
  95. <LI>
  96. Very large Tables consume a lot of X windows
  97. <P></P>
  98. <LI>
  99. No equivalent of pack's -anchor/-pad etc. options
  100. <P></P></UL>
  101. <TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=100%>
  102. <TR><TD CLASS=block VALIGN=MIDDLE WIDTH=100% BGCOLOR="#cccccc">
  103. <STRONG><P CLASS=block> Tk::Table - Scrollable 2 dimensional table of Tk widgets</P></STRONG>
  104. </TD></TR>
  105. </TABLE>
  106.  
  107. </BODY>
  108.  
  109. </HTML>
  110.