From: Ruediger G. <rg...@r-...> - 2002-02-02 11:44:05
|
Hello, I recently was quiete busy with other projects, and hence didn't spend much time with Tcl/Tk and tix. However, in order to check my preliminary tix-port I need run tixwish from the Shell rather than from the finder (There is a demo script which would make testing easy, but its written in a mixture of sh and tixwish). Unfortunately, if I start tixwish from the shell no window is opended, unless I cded to the path where the tixwish is located (or copied or linked to (sym or hard)). Even worse If I start wish in gdb wish a window is opend either, indepent of path I am on. Since my tixwish is only an extended wish my problem occurs in both. And I tried to find out the difference by hacking printf's into the wish code. Everything seem to be identical (as far as I can tell from my printfs). The only difference is that the call of ShowWindow(GetWindowFromPort(destPort)); in line 171 of macosx/tkMacOSXSubwindows.c. As far as I can tell destPort and GetWindowFromPort(destPort) have reasonable values in both cases. But since the Carbon structures WindowRef and CGrafPort are not documented in the Developer tools documentation. I can"t figure out, whether there is an import difference in there value. So this would be a task for someone more experienced wth Carbon (This port ist my first contact to the Carbon API). Anyone, Or at least any hints? BTW: Another quirk (of less importance) came to my mind. If I double click on a tcl-/tk-script, I can make wish start, but loading the script and running it. It would be nice to have tcl/tk-scripts uasabel as normal programs, just be started by double clicking. BTW: I checkout the current version from CVS today. Hence the mentiond bug are not due to old TCl/Tk versions, Yours R"udiger -- R"udiger Goetz rg...@r-... WWW: http://www.r-goetz.de Mail send by a Mac running Linux (SuSE-PPC) |