mirror of
https://github.com/NGSolve/netgen.git
synced 2024-11-11 16:49:16 +05:00
4033fac1b3
Found via `codespell -q 3 -S ./external_dependencies/pybind11 -L alledges,allright,ane,anormal,ans,apoints,ba,boxs,cancle,childs,co-ordinate,co-ordinates,daty,enty,filld,hel,identifyable,ist,linz,lod,ned,nd,selt,statics,suround,thev,thist,thisy,timere,upto,wel`
21 lines
1.2 KiB
Plaintext
21 lines
1.2 KiB
Plaintext
This version of Togl is entirely free from
|
|
dependencies on Tcl/Tk's internal functions. It uses the public stubs
|
|
interface, witch means that the same binary works with any stubs-aware
|
|
wish (i.e. version >= 8.1)
|
|
|
|
It has been tested on Windows NT/2000 and Linux for several Tcl/Tk versions up
|
|
to 8.4a3. I haven't been able to test the Mac port, it probably needs mending
|
|
but I can't see why it shouldn't work in principle.
|
|
|
|
Implementation wise, what differs from Togl 1.5 is that Togl_MakeWindowExist()
|
|
is replaced by Togl_CreateWindow(), a function that gets registered in Tk as a callback for window creation. In Tk/Tk 8.4a3, there is a new public API call
|
|
Tk_SetClassProcs() to register this callback, but for earlier versions of Tk
|
|
one needs to do this using some pointer magic.
|
|
There is a run-time check to determine which method to use, hence the
|
|
same binary runs on all versions of Wish from 8.1 and up. For this to
|
|
work you need to compile against the headers from Tcl/Tk 8.4a3 or later, or
|
|
the binary will only work for Tcl/Tk 8.1-8.4a2.
|
|
The tk8.4a3 public headers (tk8.4a3.h + tkDecls.h) are included for
|
|
convenience, and they are used if the flag -DUSE_LOCAL_TK_H is specified.
|
|
|
|
Jonas Beskow, December 2001 |