From: Lloyd W. <L....@su...> - 2008-07-07 22:17:42
|
Kevin, my code in SaVi is pretty cross-platform - works in Solaris, FreeBSD, Linux, in Cygwin, on Tiger, works with latest ISO C compilers, etc etc. On the Tk supplied with Leopard XCode 3.0, and only on that, it fails to draw menus unless a switch to the older -redrawn-menus method (implemented as a workaround for Leopard) is made. Tiger is fine, as the screenshot on http://info.ee.surrey.ac.uk/Personal/L.Wood/software/SaVi/building-under-Mac-OS-X/ shows. This suggests it's likely not my code. (I've also been able to crash that Tk on the Mac, but not on other platforms, by setting a large listbox -width $n. If $n > 80, Mac Tcl hangs. Other platforms draw the wide listbox you'd expect. Definitely not my code.) I've spent a few months scratching my head over this, and am hoping that, if indeed it is my code, someone with more Mac Tcl experience than me can compile SaVi on their Mac, take a quick look, and suggest where I am going wrong. thanks, L. unlike Jack's problem with finding the menu at the top of the screen, this one's real... http://savi.sf.net/ On 7 Jul 2008, at 22:07, Kevin Walzer wrote: > Lloyd Wood wrote: >> Jack, >> I have the exact same menu problem with my SaVi 1.4.0 package - it >> works fine under Tiger (and Linux and Cygwin), but under Leopard >> and the default Tcl/Tk supplied with XCode 3.0 the menubar does not >> appear and is non-functional. I coded up >> savi -redrawn-menus >> as a workaround, making it possible to draw popup menus in windows >> for Leopard (combining Tk 4.2 code with Tk 8.0 code). SaVI can be >> downloaded from >> http://savi.sf.net/ >> (I'm using an Intel Macbook with 10.5.4.) >> L. > > Lloyd, > > I tested Jack's script with a new build of Tk 8.5.3 and it worked > fine. However, I did note the problems you outline in SaVi. Are you > sure the issue isn't somewhere else in your code? > -- > Kevin Walzer > Code by Kevin > http://www.codebykevin.com <http://info.surrey.ac.uk/Personal/L.Wood/><L....@su...> |