packages icon
The Rexx/Tk Library (version 1.0.0)

An extension library for use with most versions of Rexx and
providing access to the Tk Graphic User Interface Toolkit.
  
   Copyright (C) 1999  Roger O'Connor <ocon@metronet.com>
 
   This library is free software; you can redistribute it and/or
   modify it under the terms of the GNU Library General Public
   License as published by the Free Software Foundation; either
   version 2 of the License, or (at your option) any later version.
 
   This library is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   Library General Public License for more details.
 
   You should have received a copy of the GNU Library General Public
   License along with this library; if not, write to the Free
   Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.

Requirements:
   * A version of Rexx that supports use of extension libraries.
   * Version 8.0 (or later) of the freely available Tcl/Tk distribution.

The following functions are provided in the library:

   REXX FUNCTION                         TK COMMAND
   -------------                         ----------
TkTcl(args, [arg, ...])                 any tcl command
TkButton(pathName, [options...])        <button>
TkWait()                                new command - returns the "command"
                                              from widgets when pressed/used
TkPack(option, [arg, ...])              <pack>
TkMenu(pathName, [options...])          <menu>
TkAdd(pathName, type, [options...])     <menu - add command>
TkLabel(pathName, [options...])         <label>
TkConfig(pathName, [options...])        "configure" command in most all widgets
TkFrame(pathName, [options...])         <frame>
TkWm(option, window, [args, ...])       <wm>
TkDestroy(pathName)                     <destroy>
TkGrab(pathName, type, [args, ...])     <grab>
TkEntry(pathName, [options...])         <entry>
TkGet(pathName)                         "get" command in some widget like
                                              TkEntry, TkScale and TkListbox
TkDelete(pathName, start, end)          "delete" command in TkEntry and TkText
TkTopLevel(pathName)                    <toplevel>
TkScale(pathName, [options...])         <scale>
TkFocus(pathName, [args, ...])          <focus>
TkSet(pathName, value)                  "set" command in some widgets
                                              like TkScale
TkVar(varName, [value])                 <set> set and retrieve Tk variables
TkAfter(time|'cancel', 'command'|id)    <after>
TkGetOpenFile(initDir,initFile,title,defaultExtension,parentWin)
TkGetSaveFile(initDir,initFile,title,defaultExtension,parentWin)
                                        <tk_getOpenFile|tk_getSaveFile>
TkSetFileType(type, extension[s...])    sets the rtFiletypes TK variable for
                                        use in both TkGetSaveFile and
                                        TkGetOpenFile as the -filetypes option
TkMessageBox(message,title,type,icon,default,parent) <tk_messageBox>
TkScrollBar(pasthName, [options...])    <scrollbar>
TkListbox(pasthName, [options...])      <listbox>
TkInsert(pathName, [args, ...])         "insert" command in TkListbox.
TkCurSelection(pathName)                "curselection" command in TkListbox
TkCanvas(pathName, [options...])        <canvas>
... tbd...
TkCanvasArc(canvas,
TkCanvasBitmap
TkCanvasDelete
TkCanvasImage
TkCanvasLine
TkCanvasOval
TkCanvasPolygon
TkCanvasPostscript
TkCanvasRectangle
TkCanvasText
TkCanvasWindow

For the latest detailed information on use of the Rexx/Tk functions, reference
the Tk Library documentation included with the Tcl/Tk distribution.