Listed below are new features and other additions to Perl/Tk that post-date the publication of the the Perl/Tk Pocket Reference, First Edition, October 1998. Any errata have been removed and are now (or will be) part of the O'Reilly errata page at http://www.oreilly.com/catalog/perltkpr/errata. 1998/12/01 p. 34 Add this sentence to the -menu description: The menu must be a child widget of the menubutton. 1999/03/07 p. 26 The Text widget now supports the Tix -data option found in HList, et.al. You can configure any Text tag with a scalar value; the scalar, of course, can be a reference to a more complex data structure. The new -elide option can hide text. So, insert these options after the -bgstipple Text Tag Option: -data => I special data associated with tag. -elide => I If true then text covered by the tag is not displayed. p. 87 Table 1 lists the valid eventGenerate() options and their corresponding X11 event structure codes: -width and -delta are missing. There are also a handful of codes that may appear in an event structure but have no eventGenerate() option, so add them to the end of the table. eventGenerate() Option | Code | Valid Events ---------------------- | ---- | ------------ -delta => I D MouseWheel -width => I w Configure, Expose ASCII character A KeyPress, KeyRelease decimal I N KeyPress, KeyRelease type field T I window path name W I p. 94 Add description of chooseColor() alphabetically. Also add a "chooseColor" index entry. I<$color> = I<$widget>->B(-title => I, -initialcolor => I); Pop up a dialog box to select a color name or hexadecimal color number. p. 95 Add description of getOpenFile() alphabetically. Also add a "getOpenFile" index entry. I<$path> = I<$widget>->B(-defaultextension => I, -filetypes => [filePattern ?, ...?], -initialdir => I, -initialfile => I, -title => I); Pop up a dialog box to select a file to open. Return the file's full path name or an empty string. p. 95 Add description of getSaveFile() alphabetically. Also add a "getSaveFile" index entry. I<$path> = I<$widget>->B(-defaultextension => I, -filetypes => [filePattern ?, ...?],-initialdir => I, -initialfile => I, -title => I); Pop up a dialog box to select a file to save. Return the file's full path name or an empty string. p. 96 Add description of messageBox() alphabetically. Also add a "messageBox" index entry. I<$button> = I<$widget>->B(-default => I, -icon => I, -message => I, -title => I, -type => AbortRetryIgnore|OK|OKCancel|RetryCancel|YesNo|YesNoCancel); Use Tk::Dialog to quickly create several common dialog boxes, and return the string value of the selected button. 1999/04/19 p. 93 B and B are not listed alphabetically. My convention, moreover, ignores case and any leading "Tk", so B should come after B, and B should come after B. NOTE: these two commands have no index entry, so be sure to add one. p. 98 Add description of the B subroutine, alphabetically, after B and before B. Also add an index entry. I<$tainted> = I<$widget>->B; Returns a true value if running with taint checks enabled. 1999/06/13 p. 91 Insert this Font method alphabetically: $widget->as_string($font); Returns the string representation of the font object I<$font>. p. 95 focusNext() and focusPrev() do not return the next or previous widget, but actually change the focus. Thus, change the descriptive text for both, as follows: Changes the focus to the next (or previous) widget in focus order, depending upon the widget's -takefocus option (see Common Widget Options). p. 99 Missing index entry: DialogBox, 44 1999/06/29 p. 49 Change the -data option - it can be any scalar, not just a string. -data => I 1999/08/09 p. 56 Add these NoteBook configuration options, alphabetically: -backpagecolor => I color of background notebook pages -inactivebackground => I color of inactive notebook tabs 1999/12/22 Legend: B<> bold C<> code CW<> constant width font I<> italic BI<> bold italic This update to the eratta brings the Perl/Tk Pocket Reference up-to-date with Perl/Tk version 800.017. The changes are extensive, for various reasons: . Added widgets that are newly arrived since last printing, or were omitted for one reason or another: Animation, InputO, Pane, ProgressBar, Table, TextUndo. . Added Compound and Pixmap image types. . Added Tk::CmdLine and OS-dependent menu style info. . Incorporated the myriad of changes from the great "dash patch" that added dashed lines to the Canvas widget, plus zillions of assorted "companion changes" that came along for the ride. . Added tons of new methods for Text and TextUndo widgets. Steve Lidie, 1999/12/08 Front, and Back Get out your paint and re-color the red with spanking-new blue (-: Covers, Spine p. 3 The "dash patch" added lots of common options to the Common Widget Options section. Add these, alphabetically: -activetile => I Tile displayed when drawing an active widget. -disabledtile => Tile displayed when drawing a disabled widget. -offset => I Specifies the tile offset. I can be an array reference [x, y] or CW, CW, CW, CW, CW, CW, CW, CW, or CW
. Also used for Canvas stipples. Also an index for Canvas line/polygon items. -tile => I Tile displayed as a widget's background. Legal on these widgets: Button, Canvas, Checkbutton, Entry, Frame, Label, Listbox, MainWindow, Menubutton, Message, Scale, Scrollbar, Radiobutton, Text, Toplevel. -troughtile => I Tile displayed in the rectangular trough area. p. 6 After all the Common Widget Options, add this new subsection at the bottom of the page: BI The first MainWindow call invokes Tk::CmdLine::SetArguments to extract these X11 arguments from the command line: -background | -bg => I -iconic -class => I -motif -display | -screen => I -name => I -font | -fn => I -synchronous -foreground | -fg => I -title => I -geometry => I -xrm => I X11 resource data format is CW<*background: cyan> B(I); Extract the X11 options contained in the specified array (@ARGV by default). All other arguments are left untouched. B(I); Get the value of a configuration option (default CW<-class>). B(I<(\@resource | $resource) ?, priority?>); Set one or more resources. I may be CW, CW, CW, CW. B(?-symbol => I?, ?-file => I?, ?-priority => I?, ?-echo => I?); Process command line and load resources. p. 7 This option is actually NOT in pTk - I'll leave it here for if-and-when it becomes so. Add optional -gain option to the scanDragto method: ?, -gain => I? Append to the description by changing: coordinates. to: coordinates, multiplied by the I<-gain>. p. 9 The "dash patch" adds *lots* of options to the Canvas widget. Under Canvas Options at the top of the page add -state and -tile, alphabetically, in the right column. Further down, after the -scrollregion description, add: -state => CW