home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!ogicse!uwm.edu!linac!att!cbnewsm!gah
- From: gah@att.com (George A. Howlett)
- Newsgroups: comp.lang.tcl
- Subject: Re: graph-1.0
- Message-ID: <1992Nov5.212044.10157@cbnewsm.cb.att.com>
- Date: 5 Nov 92 21:20:44 GMT
- Article-I.D.: cbnewsm.1992Nov5.212044.10157
- References: <1992Nov5.160948.9001@rock.concert.net>
- Sender: news@cbnewsm.cb.att.com (NetNews Administrator)
- Reply-To: george.howlett@att.com
- Organization: AT&T Bell Laboratories
- Lines: 45
- X-Newsreader: TIN [version 1.1 PL6]
- Nntp-Posting-Host: grenache.cnet.att.com
-
- Derrick C. Cole (cole@concert.net) wrote:
- : Has anyone successfully added the graph-1.0 widgets to tk2.3 with tclX6.4c?
- : I've had 0 luck so far.
- :
- : Any and all help will be greatly appreciated!
- : Derrick
- :
- : --
- : "4. So-called "decorative floor mats" just flattened cap'n crunch boxes."
- : -- Top Ten Signs You've Bought A Bad Car
- : -----
- : Derrick Cole KC4WEJ MCNC Center for Communications
-
-
- If you have a version of tk2.3 wish that works with extended tclX6.4c,
- you are almost home free.
-
- In the file main.c, simply add the lines
-
- extern Tcl_CmdProc GraphCmd;
- extern Tcl_CmdProc HypertextCmd;
-
- before the main function.
-
- And in the main function, after the line
-
- XSetForeground (Tk_Display (w), DefaultGCOfScreen (Tk_Screen (w)),
- BlackPixelOfScreen (Tk_Screen (w)));
-
- add the lines
-
- Tcl_CreateCommand (interp, "htext", HypertextCmd, (ClientData) w,
- (Tcl_CmdDeleteProc *)NULL);
- Tcl_CreateCommand (interp, "xygraph", GraphCmd, (ClientData) w,
- (Tcl_CmdDeleteProc *)NULL);
- Tcl_CreateCommand (interp, "barchart", GraphCmd, (ClientData) w,
- (Tcl_CmdDeleteProc *)NULL);
-
-
- Replace the main.c in the graph-1.0 distribution with this version.
- Edit the Makefile (or Imakefile) adding in the appropiate paths
- for the extended Tcl header files and the extended tcl library.
- Then simply follow the instructions in the README.
-
- --gah
-