Version 5 of Wikit on PocketPC

Updated 2003-09-11 20:39:58

This page is a work-in-progress description of how to get Wikit running on a PocketPC using the Tk interface. Still plenty of room for improvement... :-)

Why would you want to do this? Well I like it because it means that I no longer have to use a notebook (i.e. pen and paper) at all. I take all my notes in Wikit, either on the PocketPC or laptop, and synchronise the two databases (a script to be provided later :-)).

The description below assumes some familiarity with Tcl...

My suggested steps are:

This is from memory, so I will be looking for some verification once this page has sufficient detail.

I think this is enough to get it working now. All feedback appreciated.

Known Issues:

  • wikit.tkd always seems to be created in the root directory (\). I haven't looked into this yet.
  • The screen dimensions are based on an iPAQ 5450 and hardcoded in gui.tcl.
  • There are a number of limitations with the PocketPC Tcl port, see Known bugs in CE ports.
  • When scrolling, Tcl seems to display a blank selected area occasionally. I assume this is a problem with the PocketPC port, but haven't been able to narrow the conditions down sufficiently.

Many thanks to:

  • Jeffrey Hobbs for making the 8.4.4 port available on the PocketPC.
  • Jean-Claude Wippler for making Mk4tcl available on the PocketPC.
  • Everyone who contributed to Tcl, MetaKit and Wikit.

AKG


Modified main.tcl (modify auto_path to point to the actual directory):

 lappend auto_path /Tcl/samples/wikitce/lib

 if 0 {
     namespace eval tkcon {}
     set tkcon::PRIV(showOnStartup) 0
     ## set tkcon::PRIV(root) ./tkcon.cfg
     set tkcon::OPT(exec) ""
     source tkcon.tcl

     #tkcon show
     bind . <Control-c> {
         if {[winfo exists .tkcon] && 
         [winfo ismapped .tkcon]} {
             tkcon hide
         } else {
             tkcon show
             wm geometry . 230x200+0+5
             wm geometry .tkcon 44x18+0+0
         }
     }
 }

 package require Mk4tcl
 package require app-wikit

This looks great!!!! Just waiting on the rest of the instructions. MPJ (10/09/03) Ok I just tried it out and got it to work. I did find that I needed a wikit.tdk installed in the root or I got a error related to stdout. Now we just need menus working ;-)

AKG (12 Sep 03) I thought that it automatically created wikit.tkd for me. It might have worked because I had Tkcon running, and it "fixed" the stdout problem.