Ok, right now i realize that it's a problem in u_main.tk / pdtk_canvas_altkey and pdtk_canvas_ctrlkey. The variable "context" is not defined there. Consequently, the problems only occur with keyboard interaction. Using the menus just works fine. Two more things: - src/makefile should be in the cvs as it is created from makefile.in by autoconf - the arrowheads look nice in some cases but ugly when the objects are close to each other... i think there should be a menu command to switch them off.
very nice work! Thomas
----- Original Message ----- From: "Thomas Grill" t.grill@gmx.net To: "Mathieu Bouchard" matju@sympatico.ca Cc: "pd-dev" pd-dev@iem.kug.ac.at Sent: Friday, March 19, 2004 9:48 PM Subject: impd
Hi Mathieu, right now i'm trying to run your impd on Windows.... i hope it's ok that i checked in some minor changes into the cvs allowing for compilation with Microsoft Visual C++. It starts up, but then after opening a new patcher (a like that gray background) i can't do anything with it. Even closing results in a "Error
in
TCL Script": Error: can't read "context": no such variable.
best greetings, Thomas
On Fri, 19 Mar 2004, Thomas Grill wrote:
Ok, right now i realize that it's a problem in u_main.tk / pdtk_canvas_altkey and pdtk_canvas_ctrlkey. The variable "context" is not defined there. Consequently, the problems only occur with keyboard interaction. Using the menus just works fine.
Yeah, I fixed it. It was a hurried fix to a problem with the "accelerators" database.
You see, that code is replacing a pageful of "if" statements that would check for each key individually instead of using how the menus were defined. I also changed how the menus are defined, as entries were created one by one using the "add command" method of Menu objects. I replaced that by a menu generator and data tables. It's nicer-looking code, easier to modify, and cutting hundreds of lines in u_main.tk.
- src/makefile should be in the cvs as it is created from makefile.in by
autoconf
oh yeah? but I am configuring with --prefix=$HOME, which changes the makefile, right?
- the arrowheads look nice in some cases but ugly when the objects are close
to each other... i think there should be a menu command to switch them off.
Well, what I want is change the arrowhead size from default to something smaller depending on patchcord length, and make it disappear completely under a certain threshold. Right now the arrow code is only half a line of code (really), as that capability is already builtin in Tk's Canvas objects.
very nice work!
thanks
________________________________________________________________ Mathieu Bouchard http://artengine.ca/matju