home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / tk42r2s.zip / tk4.2 / os2 / README < prev    next >
Text File  |  1999-07-27  |  24KB  |  420 lines

  1. Last update: 27 July 1999
  2. Illya Vaes
  3. Martin Luther Kingstate 23
  4. 6716 NA Ede
  5. The Netherlands
  6. ivaes@hr.nl (work; this was/is a free time project)
  7.  
  8. Welcome to release 2 of Tcl 7.6p2/Tk 4.2p2 for OS/2 PM.
  9.  
  10. Installation:
  11. Unzip the archive, making sure directories are preserved (PKzip needs -d).
  12. As long as the binaries (tclsh76.exe, tclshpm76.exe and wish42.exe) are started
  13. in the same directory as their DLLs (tcl76.dll and tk42.dll), you don't need to
  14. do anything else. If you want to be able to start them from anywhere, you have
  15. to put the directory in your path or put the executables in a directory that
  16. already is in your PATH (and the DLLs in your LIBPATH).
  17. In such a case, it becomes quite likely that Tcl will not be able to find out
  18. the location of its library by itself, so you're recommended to add environment
  19. variables for those to your CONFIG.SYS (if you want them to persist, that is),
  20. e.g. SET TCL_LIBRARY=E:/TclTk/lib/tcl7.6 and TK_LIBRARY=E:/TclTk/lib/tk4.2.
  21. Paths in Tcl/Tk use _forward_ slashes, in this port too! You can change to a
  22. different drive (and, if you like to a different directory there at the same
  23. time) by saying e.g. "cd e:/tk4.2/os2".
  24. Tcl uses the environment variable TEMP (native OS/2 format, backslashes) to
  25. determine the directory in which to make temporary files (eg. for use with
  26. pipelines).
  27.  
  28. This port has been compiled with EMX 0.9c, and requires its EMXLIBCM.DLL and
  29. EMX.DLL (or those of a higher version). Kudos to Eberhard Mattes for EMX.
  30.  
  31. Compiling:
  32. To compile the source yourself, you need the Tcl and Tk source from Sun.
  33. After extracting it (gzip -c -d tcl7.6p2.tar.gz | tar xvf -) on your drive,
  34. unzip the source-zip of Tcl/Tk for OS/2 on the same drive, go to tcl7.6\os2
  35. and execute 'gmake'.
  36. Obviously, you need gzip, tar, unzip and gmake for this, as well as EMX.
  37. Also, \OS2\RC.EXE was used.
  38.  
  39. Using the DLLs in other applications:
  40. To make use of tcl76.dll and/or tk42.dll in other applications, you have to
  41. link the executables of those with tcl76.lib and/or tk42.lib (the import
  42. libraries corresponding to the DLLs), and include code in your EXE to
  43. initialize and use Tcl/Tk (or initializing your own package, depending on how
  44. you look at it), as is shown in the file tclAppInit.c and tkAppInit.c.
  45. See the Makefile for files to link with your executable, taking note of the
  46. way a command-line Tcl-application is built (eg. always with tclOS2Main.c with
  47. or without defining CLI_VERSION, tclOS2Console.c only when building a PM-based
  48. Tcl application).
  49. If, for some reason, you only have tcl76.dll and/or tk42.dll and not the .lib
  50. files, then you can generate the latter by using emxexp and emximp (2x). See
  51. the Makefile (targets $(TKBASE).def, $(TKBASE).imp and $(TKLIB)) for how to.
  52.  
  53.  
  54. NOTES
  55. =====
  56. - When you are in TclshPM, you can say "load <full-path-to-tk42.dll>" and you
  57.   have gotten all of Tk at your disposal (without wish's console).
  58.   Eg. "load E:/TclTk/bin/tk42.dll".
  59. - The native File Dialogs don't really support a "default extension" (like in
  60.   Windows), probably because OS/2 has *real* file types not related to the
  61.   filename. The code around the File dialogs will however add any given
  62.   default extension to any given initial file if that has no extension yet.
  63.   If the user then types in a file without an extension or choose one, then
  64.   _no_ extension is added (since the file dialog gives no such control).
  65.   This could probably be added after the dialog (adding the extension then),
  66.   but who am I to second-guess the user... Anyway, the Mac ignores extensions.
  67. - Because of difference in fonts and such, layout of scripts may turn out wrong.
  68.   This includes the test script hscale.tcl for instance, where the arrow that
  69.   follows the scale starts further to the left than the scale. Changing the
  70.   "-wraplength" option to the label $w.msg from 3.5i to 300 makes it (approx.)
  71.   correct.
  72. - Fonts need to be specified in the same case as Presentation Manager knows,
  73.   eg. Helvetica (not helvetica), Times New Roman (not times), ...
  74. - Mouse buttons are those known to OS/2, ie. Button 2 is the *right* button,
  75.   not the middle one as in X. Of course, for consistent lefties (I only write
  76.   left-handed) Button 2 is the left button ;-)
  77.  
  78. Programs that are known to run (with or without minor modification)
  79. -------------------------------------------------------------------
  80. Some apps seem to get into an infinite loop upon closing the main window with
  81. double clicking the window menu button (the icon topleft). At least Paradigm
  82. Visual Make does this. Visual Tcl and XF correctly intercept the
  83. WM_DELETE_WINDOW and/or other WM_PROTOCOLS.
  84. - TkCon 1.03
  85.   The switch statement setting the envHome variable ("Determine what directory
  86.   the resource file should be in") must be augmented with an "os2" pattern:
  87.   "windows - os2 - unix    { set envHome HOME }"   instead of
  88.   "windows - unix    { set envHome HOME }"
  89.   And set the HOME environment variable in CONFIG.SYS ofcourse...
  90. - SpecTcl 1.1
  91.   Several tcl_platform checks need to have OS/2 added, which is easiest in
  92.   case statements by adding a line with "os2 -" before the "windows" case,
  93.   thereby making the Windows code pertinent to OS/2 too.
  94. - Visual Tcl 1.08
  95.   A smaller font must be specified to get the texts to show in their entirety
  96.   in the "Geometry Information" dialog, eg {8.Helv}.
  97. - Paradigm Visual Make (pvm_12).
  98.   Needs to have the testing for the platform to be augmented with OS/2, with
  99.   the same actions as for Windows.
  100. - XF 4.0pl1.
  101.   Needs to have "exec command.com..." changed to "exec cmd.exe" in
  102.   src/xfglobals.tcl and src/xfmisc.tcl (failure to do this will crash the
  103.   program), and the scripts xfhardcopy/xfhardcopy.tcl and
  104.   xfappdef/xfappdef.tcl need to have their wish modified to wish42.exe.
  105.  
  106. TESTS THAT FAIL
  107. ===============
  108. Tk:
  109. - Some tests fail because a default font is chosen instead of returning an
  110.   error.
  111. - Some tests fail because the fontname isn't capitalized (eg. helvetica
  112.   instead of Helvetica) and so a default font is chosen.
  113. - Tests in winfo.test with winfo interps fail since X Properties are not
  114.   supported (future implementation via Prf... ?).
  115. - Some tests fail because font sizes / rounding may vary between X and PM (eg.
  116.   entry xview or entry index @nr with a proportional font).
  117. - imgPPM.test fails because the file isn't written in a cross-platform manner.
  118.   Supposedly fixed in 8.0.
  119. - canvPsText.tcl: fails to select the correct fonts because they are specifief
  120.   in lower case, while OS/2 font names start with a capital (eg. Helvetica),
  121.   while 'times' should be 'Times New Roman'.
  122. Tcl:
  123. - The Tcl env.test fails (after hacking it to use printenv.exe and a path
  124.   separator of ';' instead of ':') because EMX insert a variable _emx_sig,
  125.   after the the contents of the environment that Tcl gets have been determined,
  126.   so all results are "off" by that variable.
  127. - Format: values that would get truncated to 0 seem to be rounded upwards by
  128.   EMX to the nearest non-0 value. This makes two format tests fail (ie. %3.1f
  129.   and 0.01 gives 0.1 instead of 0.0, but %3.1f and 0.001 gives 0.0).
  130.   Two other formats that fail concern "%#.0g" and "%#.4g", where EMX seems to
  131.   take the number of digits after the decimal point more literally than the
  132.   tests expect, rendering 0.0000 and 0. respectively (0.000 and 0.0 expected).
  133. Other than this, all Tcl tests work correctly.
  134.  
  135. HISTORICAL CHANGES
  136. ==================
  137.  
  138. Release 2 of the OS/2 port
  139. ==========================
  140. - Binary distribution (and Makefile): with maximum packing with LXLITE and
  141.   icons correctly as default icons.
  142. - The CLI-version doesn't set Focus to the desktop anymore (necessitating one
  143.   to explicitly change focus again to type something else in the window in
  144.   which tclsh76 ran).
  145. - Error message (WinMessageBox) when the evalutation of a script that was given
  146.   as an argument doesn't return TCL_OK (taken from forthcoming 8.0.5 version).
  147. - Fixed operating system version in $tcl_platform(osVersion).
  148. - Environment variable LANG set to DE_DE doesn't cause a syntex expression for
  149.   eg. "expr 3.14" anymore.
  150. 7.6p2/4.2p2
  151. ===========
  152. - Tclsh76.exe is now a command line interface (CLI) version of tclsh.exe.
  153.   In this version you can*NOT* say "load tk42" and have Tk at your disposal,
  154.   since this version has PM usage switched off (mutually exclusive).
  155.   The previous PM implementation is now called tclshpm76.exe.
  156.   Note: the CLI version has a nasty side effect of making the window in which
  157.   it is run lose focus; under FeelX the window even has the active titlebar so
  158.   FeelX must think the focus is there, but typing in the window has no effect.
  159.   You must move your mouse out of the window and back in.
  160. - Native File Open/Save Dialog. If you use object types names as known to the
  161.   WPS, you can select files based purely on their type (not extension).
  162.   Note: for compatibility with existing (non-WPS aware) scripts, the initial
  163.   selection is with "type" <All Files>, so the name is significant.
  164. - Sockets are now handled (in/by code) like in the Unix version, making the
  165.   reliance on EMX more obvious (it was already present) because it makes the
  166.   use of sockets transparent, like on Unix.
  167. - NotifyVisibility events are now only generated for windows that are showing
  168.   according to PM (WinIsWindowShowing) and Tk considers mapped (TK_MAPPED).
  169.   Previously, the Windows port of generating it for every TK_MAPPED child
  170.   (because Windows has no equivalent of WinIsWindowShowing, only of
  171.   WinIsWindowVisible, which returns true for windows that are completely
  172.   obscured too) was used unchanged.
  173.   Any event still has a state of VisibilityUnobscured. More accurate transition
  174.   info could be generated, but in my opinion would be too expensive (both in
  175.   computation and memory) compared to its use.
  176.   Some changes from the 8.0 Windows version have been incorporated to fix the
  177.   double Map/Unmap binding triggering in two tests in textWind.test.
  178. - The names for temporary files are now determined with tempnam(), which made
  179.   eg. "exec cat << {Sample text}" work correctly. This, however, left the
  180.   temporary behind since that is closed (and tried to be deleted) before the
  181.   program that is reading from it (cat) exits, giving a sharing violation.
  182.   Therefore, when a temp file cannot be deleted, it is added to a list of
  183.   temp files as yet undeleted, to be deleted on exit. An exit procedure is
  184.   registered for that, which tries to close and delete every file in the list,
  185.   ignoring any errors. If that doesn't do it.... you're out of luck :-).
  186.   Oh... and EMX 0.9c has TMP_MAX defined as 1000, so after so many temp files
  187.   it starts over, so make sure you don't make that much at the same time... ;-)
  188. - Winfo rooty and winfo containing gave incorrect results, fixed.
  189. - Bug in XCopyPlane fixed.
  190. - Moving rectangles left spurious lines to the right (eg. widget demo,
  191.   arrowhead for canvas lines editor); fixed.
  192. - Optional compiling of key-handling fixes suggested by Ilya Zakharevich (break
  193.   e.g. Ctrl-X).
  194. - Fixes suggested by Ilya Zakharevich (fonts):
  195.   + Consider the "10" in e.g. "10.Courier" to be pixels, not points.
  196.   + Use lMaxBaselineExt as height indicator for pixmap fonts instead of
  197.     emHeight.
  198.   + Compile option for "display resolution correction" (ignoring what PM tells
  199.     us and using a given resolution, default 72 dpi.
  200.   + Default text font "10.Courier" when that "correction" is used.
  201. - The format of $tcl_platform(platform) has been changed to "os2" to make it
  202.   more consistent with those of other platforms ("unix", "macintosh",
  203.   "windows"). $tcl_platform(os) still returns "OS/2".
  204. - The Tclsh console now shows output sent to "stdout" or "stderr" when running
  205.   interactively. The tests make use of these explicit channel names.
  206. - Transients now get a dialogborder.
  207.  
  208. 7.5/4.1
  209. =======
  210. Fix 1
  211. -----
  212. - Opening files for appending truncated them. Fixed.
  213. - Bitmaps got reversed (again). XCopyPlane has to do the colours "reversed"
  214.   like the Windows port, contrary to what the PM Guide and Reference states.
  215.  
  216. Release
  217. -------
  218. - Execs (usually with pretty much output) gave an OS/2 error message that the
  219.   process tried to write to a non-existent pipe. Fixed by not using a named
  220.   pipe but an unnamed pipe.
  221. - The socket code works.
  222. - The Tclsh console tries its best to add all output to the end, no matter
  223.   where the cursor happens to be.
  224.   Insert output from commands with MLM_IMPORT instead of via the clipboard,
  225.   thereby not being limited to 64K.
  226.   Control-C can be used to (try to) break off a script (like is necessary to
  227.   regain control in the test-script remote.tcl).
  228. - Traced a (not-so) subtle bug in TclSetSystemEnv that reared its ugly head
  229.   later, by running Visual Tcl 1.08 (malloc-ing space for VARIABLE=VARIABLE
  230.   instead of VARIABLE=VALUE, for a lengthy value, ergo using memory that wasn't
  231.   malloc-ed). Stoooopid.
  232. - Use of the command processor in environment variable COMSPEC instead of
  233.   always using CMD for things not in the path (ie. likely internal commands
  234.   like DIR). Still uses CMD.EXE when this can't be determined.
  235. - Array subscripts in determining system values were one off, rendering OS/2
  236.   Warp 4 as major version 4, minor version 0, revision <some-number> instead
  237.   of the (documented) required 20, 40 and 0. Fixed, but "hacked" in the same
  238.   way as CMD.EXE, ie. returning version 4.0 for 20.40.0.
  239. - Globbing was broken for non-current directory searches.
  240.   It accepts volume-relative specs like "e:*.tk" and fills in the current
  241.   directory on the drive between the ':' and '*'.
  242.   It now also determines case (in)sensitivity and case (non)preservation from
  243.   the file system that the directory resides on. FAT, VINES and anything it
  244.   doesn't recognize are taken to be insensitive and non-preserving. NFS and
  245.   EXT2FS (Linux) are taken to be sensitive and preserving, HPFS and NTFS
  246.   insensitive and preserving.
  247. - Fixed "put" with a channelId in the Tclsh console.
  248. - Flashing of a new window in the corner (being displayed there and then
  249.   immediately moved) fixed. Was caused by a superfluous WS_VISIBLE in the
  250.   Window Style). By default windows start in upper left corner.
  251. - Overzealous looking at VK_ALTGRAF in tkOS2X.c removed. This caused any key
  252.   pressed with Alt Gr (German, Dutch keyboards) to be ignored.
  253. - First code for a CLI (Command Line Interface) version of tclsh put in, but
  254.   not pursued further. #ifdef-ed with CLI_VERSION.
  255.  
  256. Beta 5 - 11 sept.1997
  257. ------
  258. - Unlike the Windows port ;-), the functionality of stippling for ARCs is
  259.   implemented.
  260. - Fixed inconsistency and typo in tkOS2Pointer.c wrt. Y coordinate lastMousePos.
  261. - The format of $tcl_platform(os) has been modified again to make them more
  262.   logical though now the array elements for platform and OS return the same,
  263.   ie. "OS/2"; Other values: osVersion e.g. "4.0", machine "intel".
  264.   Similarly, "winfo server ." returns e.g. "OS/2 4.0".
  265.   No marketing names (Warp) allowed here...
  266. - Menus appear at the correct height (aligned with bottom of button).
  267. - Binding to ALT works. NB: A binding is case-sensitive: Control-Shift-x will
  268.   not match anything while Control-Shift-X will. The latter is equivalent to
  269.   Control-X, since you will only get X (not x) by pressing Shift.
  270. - Withdrawn windows completely disappear, ie. from the task list.
  271. - Stippling works (apart from stippled ARCs, which don't get stippled in the
  272.   Windows port either).
  273. - Windows port did not look at GC values for CapStyle, JoinStyle, LineStyle.
  274.   This port does.
  275. - Lines have (specified) width. This needs the "geometric line width" in OS/2,
  276.   which is only used by GpiStrokePath (and GpiModifyPath), so use that.
  277. - Ctrl-X and the likes work.
  278. - Focus problem after grab fixed. I was too correct in following the "Results"
  279.   section for XGrabPointer, which says to return AlreadyGrabbed if the grab
  280.   didn't succeed. This should be ignored, like in the Windows version, and
  281.   GrabSuccess should always be returned.
  282. (Font patch by Ilya Zakharevich assimilated)
  283. - Fonts (sigh ;-}): calculation of size was wrong.
  284.   Furthermore, because of unclear / confusing GPI programming info, the check
  285.   of the sizes of the available fonts wasn't done on the right value. It turns
  286.   out you have to *request* the size via the lMaxBaselineExt member, while the
  287.   actually used value is in lEmHeight.
  288.   Am I dense or what?? Actually, the returned nominal pointsize is OK.
  289.   Compile-time option (via #define) provided for ignoring a PM-provided font
  290.   resolution of 120dpi, taking 96dpi instead, which is the resolution in VGA
  291.   and upto ?800x600?; requested by Ilya Zakharevich.
  292. - Color images now work, including those that get split up into several before
  293.   drawing (LCOLF_RGB instead of LCOLF_CONSECRGB in GpiCreateLogColorTable;
  294.   LCOLF_CONSECRGB should (only) be used with Palette Manager).
  295. - Width calculation of fonts improved by using TXTBOX_BOTTOMRIGHT instead of
  296.   TXTBOX_CONCAT.
  297. - Tcl: File globbing was broken because DosQueryPathInfo doesn't like ".\" for
  298.   the file/directory argument. Similarly, directories weren't seen.
  299. - "option readfile" wasn't succesful with OS/2 files, but was with an .Xdefaults
  300.   copied from Linux. Choked on the Return&Newline being replaced by just the
  301.   Newline, yielding a "nr.of chars read" smaller than the file size, aborting
  302.   the entire process. Fix necessitated changing the generic file tkOption.c,
  303.   function ReadOptionFile with the corresponding (fixed) code of Tk 4.2.
  304. - Compile time option (set in makefile.emx) to use "9.WarpSans" as default
  305.   font.
  306.  
  307. Beta 4
  308. ------
  309. - A "wm withdraw" now also works when running or sourcing a script (i.e.
  310.   mapping/creating in withdrawn state).
  311.   Switching to a withdrawn window (eg. by using the task list) works okay.
  312.   Previously only a "wm deiconify" would do the trick of exposing the client
  313.   area (restoring contents).
  314. - Resizing in vertical direction fixed.
  315.   When resizing to a smaller height with a menu bar involved, the menu bar
  316.   disappeared (partly or entirely, depending on the size).
  317.   Cause was the use of CS_SIZEREDRAW for child windows.
  318. - The default screen name is determined from the DISPLAY environment variable,
  319.   if available, so scripts asking for toplevels with -screen <name> don't
  320.   abort (and any toplevels without specifying a screen in an invocation of
  321.   wish with the -screen <name> argument).
  322. - Double-clicking now works correctly, OS/2 PM's WM_BUTTONxDBLCLK messages get
  323.   changed to both a ButtonDown and a ButtonUp event.
  324. - Fonts changed again. Presentation Parameter-style specification now fully
  325.   supported:  PointSize.FontName[.Attribute][.Attribute]... where Attribute is
  326.   one of bold, italic, outline, strikeout, underline.
  327.   Some fonts (eg. -*-Helvetica-Bold-R-Normal-*-240-*-*-*-*-*-*) didn't show up.
  328.   This was because they were scaled to pointsize 0 because the 240 is in the
  329.   "pixels" spot, which should be a substitute for the point size (or at least
  330.   was in the Windows version), but wasn't implemented identically. An explicit
  331.   point size will override it.
  332.   The ascenders and descenders of scalable fonts are fixed, so they won't get
  333.   progressively larger when enlarging the font.
  334. - Double ckfree because of WM_DESTROY message (caused by WinDestroyWindow in
  335.   XDestroyWindow, tkOS2Window.c) fixed, care of sleuthing by Ilya Zakharevich.
  336. - Resizing works, wm minsize and wm maxsize likewise.
  337.  
  338. Beta 3
  339. ------
  340. - Merged resources for additional pointers into the DLL.
  341. - Clicking in the console gets the focus now too (previously, only clicking the
  342.   titlebar worked).
  343. - Fonts work a little bit more correct. ;-)  Height, width and actually used
  344.   pointsize are correct now. Without special handling, every scalable font is
  345.   of point size 12!
  346.   Code by Ilya Zakharevich (ilya@math.ohio-state.edu) incorporated into
  347.   tkOS2Font.c, enabling the use of e.g. "10.Courier".
  348. - Images work. Funnily, they are (exquisite) greyscale on a 64K display but
  349.   color on a 256 palette management. The OS/2 part is doing what Tk tells it
  350.   to with regard to color though, it just gets handed grey values, so I have to
  351.   assume it is working as advertised.
  352. - 'exec' was broken in Beta 2. Fixed. PM apps should be exec-ed with '&' unless
  353.   they are very short-lived. Tclsh will be "listening" for output from the app
  354.   and this will "lock up the queue" because of the single-threadedness.
  355. - The format of $tcl_platform(os) has been modified slightly; return values are
  356.   now "Warp 3" and "Warp 4" instead of "Warp v3" and "Warp 4 (Merlin)".
  357.   Other values: platform "OS/2", osVersion e.g. "4.0", machine "intel".
  358. - Temporary files are cleaned up when closed by specifying a DosClose wrapper
  359.   to be called on file closure.
  360. - Humongous memory leak in TkOS2SelectPalette fixed.
  361.  
  362. Beta 2
  363. ------
  364. - Font selection works correctly now, so that any font available through the
  365.   font dialog is available. It first determines all fonts in the system (#ifdef
  366.   DEBUG) / all fonts with the specified facename (#ifndef DEBUG) via
  367.   GpiQueryFonts and then determines the most suitable font based on the
  368.   size. Preference is given to bitmap fonts over outline (scalable) fonts for
  369.   purposes of performance in using the font. When many fonts of the same
  370.   facename exist, the scalable one is at the start of the "list" and the
  371.   correctly sized bitmap font is at the end of the "list", this may exact a
  372.   performance penalty at the time of determining the font. This is a small
  373.   one-time penalty though.
  374.   Fonts with a '-' in their name have to be specified by length-3-array (eg.
  375.   "Conga-Normal 180 normal").
  376.   To not get stuck with a default font (ie Courier), you will need to use font
  377.   names that OS/2 knows *and* use the right case:
  378.   helvetica      ->   Helvetica   or   Helv
  379.   Times          ->   Times New Roman   or   Tms Rmn
  380.   (eg: ... -font "-Adobe-Times New Roman-medium-r-normal-*-180-*-*-*-*-*-*" )
  381. - Colors on non-Palette management system work. Not tested on VGA but you will
  382.   not get any better there...
  383. - Choosing "Close" (Alt-F4) on a torn-off menu or otherwise non-"main" window
  384.   will only close that particular window, not the whole application.
  385.  
  386. Beta 1
  387. ------
  388. No record has been maintained for bugfixes previous to this.
  389.  
  390.  
  391. THANKS TO
  392. =========
  393. - Ilya Zakharevich for his critical testing.
  394. - Anna Chiara Bellini for putting an FTP server at my disposal.
  395. - Anyone not named that has assisted by beta testing and/or doing suggestions.
  396.  
  397.  
  398. BUGS
  399. ====
  400.  
  401. TO DO (?) (Extending port)
  402. ==========================
  403. - Accept Drag-and-Drop of files to be sourced into the console.
  404. - Have TraversalCopy and TclpCopyFile also copy Extended Attributes (EAs).
  405. - Have Shift-Insert, Shift-Delete and Ctrl-Insert act on clipboard.
  406.   This means extending the "Tk Clipboard" only approach to use PRIMARY and/or
  407.   SECONDARY too. Just replacing CLIPBOARD with PRIMARY has Shift-Insert working.
  408. - Global Grab doesn't turn pointer into clock outside of dialog. Possible??
  409. - Make button 2 and 3 of the mouse switchable. To OS/2, button 2 is the right
  410.   mouse button and generates a WM_BUTTON2* message, 3 is an optional middle
  411.   mouse button (WM_BUTTON3*). For X, and thus XFree86 in an OS/2 Full Screen
  412.   session, button 2 is the ("always available") middle button and 3 the right.
  413. - Implement a "send", either via DDE or via Pipes/Queues?
  414. - Multithreading (dual-threading: one extra thread for the message queue to
  415.   stay responding to the system, coomunicating with the one that now exists
  416.   which might be computing for a longer time).
  417. - The list of occupied logical font IDs is a straight array. This method will
  418.   leave "holes" when freeing another font than the last one.
  419.   Solution: convert to a linked list or use Tcl's hash table mechanism.
  420.