Version 13 of Windows/CE

Updated 2002-02-20 21:50:16

Rainer Keuchel has completed a port of Tcl/Tk 8.4a2 for WinCE using his celib.dll [L1 ] porting library. Please check out his page out for the lastest and greatest information at http://www.rainer-keuchel.de/wince/tcltk-ce.html .

 Current Build date is Feb 4, 2002, with celib v3.08

Per the release notes, "Tcl/Tk is still a bit buggy on WINCE211. It works better on WINCE300."

Screenshot

 Example of a simple Editor 

http://www.rainer-keuchel.de/wince/tcltk1.jpg

 Tkcon on a pocketpc 

http://www.eteamz.com/hcym/images/Tkcon1.jpg http://www.eteamz.com/hcym/images/Tkcon2.jpg[L2 ]

 TkNotePad (with or without a menu bar)

http://www.eteamz.com/hcym/images/tknotepadb.jpg http://www.eteamz.com/hcym/images/tknotpadm.jpg [L3 ]

 Tabbed Notebook and Tree Widget from D. Richard Hipp

http://www.eteamz.com/hcym/images/notebook.jpg [L4 ] http://www.eteamz.com/hcym/images/tree.jpg [L5 ]

 Simple Calculator Script from the Wiki

http://www.eteamz.com/hcym/images/calculator.jpg[L6 ]

 TclWorld by Richard Suchenwirth

http://www.eteamz.com/hcym/images/tclworld.jpg [L7 ]http://www.eteamz.com/hcym/images/tclworld2.jpg

 More pictures to come...

Download

http://www.rainer-keuchel.de/wince/dirlist.html

  1. Get the tcl generic tcltk package [L8 ].
  2. Then get your specific processor's binary package: SH3 [L9 ], ARM [L10 ], MIPS-palm [L11 ], MIPS-hpc [L12 ]
  3. Next get the celib package [L13 ] currently version 3.07.
  4. Finally get the WinCE desktop tools [L14 ]. This will allow you to update the registry from your desktop.

Installation

  1. Install the celib.dll for your processor specific platform in the '\Windows' directory on your WinCE device.
  2. Unpack and install tcltk [I will put more info in here later - including directory structure suggestions] MPJ
  3. Unpack the cereg.exe file from the WinCE desktop tools and place it in a directory with the batch file at the end of this note (on your desktop PC). Configure the batch file per your installation and then run it from the command line to update your WinCE device's registry.

RUNNING

  1. Wish84d and Tclsh84d can be run by chooing them in the Explorer Window.
  2. A Tcl or Tk file extension can be associated with Wish84d in the Windows Registry (see file wince_tcktk.bat).

[Add notes on how to run a file here] MPJ

NOTES

Currently contains the registry binary package (1.0). I have also checked this out with the tcltk only packages: Bwidget (1.3.0) and tcllib (1.1). I have also tested this out with tkcon.

Also to talk to the serial ports the valid names are "com1:", "com2:" and "com4:".

Please report bugs you find to Rainer Keuchel [L15 ] or to wince-devel [L16 ]


FILE: wince_tcktk.bat

   ::- Basic System Configuration
   REM Make changes here for your system
   set basepath=\Storage Card\Program Files
   set wish=%basepath%\Tcl\bin\wish84d.exe
   set tclsh=%basepath%\Tcl\bin\tclsh84d.exe
   set libdir=%basepath%\Tcl\lib
   set bindir=%basepath%\Tcl\bin
   set tcllibdir=%libdir%\tcl8.4
   set tklibdir=%libdir%\tk8.4

   ::- TclTk file associations
   cereg -k "HKCR\.tk" -n "" -v "tclfile"
   cereg -k "HKCR\.tcl" -n "" -v "tclfile"
   cereg -k "HKCR\tclfile" -n "" -v "TclTk Script"
   cereg -k "HKCR\tclfile\DefaultIcon" -n "" -v "%wish%,0"
   cereg -k "HKCR\tclfile\Shell\Open\Command" -n "" -v """"%wish%""" ""%%1"""

   ::- Tcl file associations
   cereg -k "HKCR\.tsh" -n "" -v "tshfile"
   cereg -k "HKCR\tshfile" -n "" -v "Tcl Script"
   cereg -k "HKCR\tshfile\DefaultIcon" -n "" -v "%tclsh%,0"
   cereg -k "HKCR\tshfile\Shell\Open\Command" -n "" -v """"%   tclsh%""" ""%%1"""

   ::- Environment Info
   cereg -k "HKLM\Environment" -n "TCL_LIBRARY" -v "%tcllibdir%"
   cereg -k "HKLM\Environment" -n "TK_LIBRARY" -v "%tklibdir%"
    REM Height of 10 is ok, 14 does almost full screen
   cereg -k "HKLM\Environment" -n "ROWS" -v "14"
    REM MAX Width for PPC is 29 Chars
   cereg -k "HKLM\Environment" -n "COLS" -v "29"
    REM Home
   cereg -k "HKLM\Environment" -n "HOME" -v "\\"
    REM Temp
   cereg -k "HKLM\Environment" -n "TEMP" -v "\Temp"
   cereg -k "HKLM\Environment" -n "TMP" -v "\Temp"
   cereg -k "HKLM\Environment" -n "TMPDIR" -v "\Temp"
   cereg -k "HKLM\Environment" -n "TEMPDIR" -v "\Temp"
    REM Path
   cereg -k "HKLM\Environment" -n "PATH" -v "%bindir%;"
    REM Username
   cereg -k "HKLM\Environment" -n "USER" -v "nobody"
    REM Debugging trace level (0 to 255)
   cereg -k "HKLM\Environment" -n "XCE_TRACE" -v "0"
    REM Debugging trace file output
   cereg -k "HKLM\Environment" -n "XCE_TRACE_FILE" -v "\xce_trace.txt"