?? readme
字號:
#AGOCG Tcl/Tk Cookbook
# Tcl/Tk and C
#Authors Lakshmi & Venkat Sastry
This directory contains the source files (*.c & *.tcl) for the example
described in Chapter 6 of the Tcl/Tk Cookbook. The example shows how user
can write C routines and register them as commands with Tcl. It also
demonstrate using other graphics packages with Tk.
The public domain X11 Release 5 PHIGS sample implementation is used. You will
require this PHIGS package for your system to run this example. Please refer
to X documents and Tom Gaskins PHIGS Programming Manual if you want to use
PHIGS.
The PHIGS box with the text "It's a square world" in the routine "MakeCube" is adopted from "A Practical Introduction to PHIGS and PHIGS Plus".
To compile the extended Tk with user defined commands that handle calls to
PHIGS, customise the makefile Make and to make type
make -f Makefile
It is assumed that the executable "myapp" will reside in this directory. If
you want to copy it elsewhere or run it from elsewhere, provide the
appropriate pathnames to it.
For this application, if myapp is not in the same directory, change the first
line in the file phig.tcl to point to myapp.
Ensure that you can execute the Tcl scripts.
Run the application by typing phig.tcl at command level of your window.
Bug:
Please note that when PHIGS draws in the Tk canvas, expose event doesn't
seem to force redrawing of structures in the PHIGS workstation. Force an
event by interacting with either the Tk scale or by selecting the line width or
colour from the menubar.
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -