Re: [PD] how to capture window-related mouse-events when toxy is discontinued?

2011-11-10 Thread Mathieu Bouchard
Le 2011-11-09 à 20:53:00, Hans-Christoph Steiner a écrit : On Nov 9, 2011, at 2:44 PM, Mathieu Bouchard wrote: You mean that each [tkzinc] object would be a TkCanvas-like widget embedded inside of the TkCanvas that would still be used ? It wouldn't solve the problem that people are talking

Re: [PD] how to capture window-related mouse-events when toxy is discontinued?

2011-11-10 Thread Mathieu Bouchard
Le 2011-11-05 à 09:50:00, Jonathan Wilkes a écrit : I haven't worked much with the -nogui flag, but what's wrong with sending a [size 20( message to [tgl] in nogui mode?  I don't see an error message. It's not «wrong», it's just that Toxy implements only the t_widgetbehavior/sys_vgui part of

Re: [PD] how to capture window-related mouse-events when toxy is discontinued?

2011-11-09 Thread Jonathan Wilkes
- Original Message - From: katja katjavet...@gmail.com To: pd-list@iem.at Cc: Sent: Thursday, November 3, 2011 6:10 AM Subject: Re: [PD] how to capture window-related mouse-events when toxy is discontinued? On Thu, Nov 3, 2011 at 1:30 AM, Jonathan Wilkes jancs...@yahoo.com

Re: [PD] how to capture window-related mouse-events when toxy is discontinued?

2011-11-09 Thread Hans-Christoph Steiner
On Nov 9, 2011, at 12:33 PM, Jonathan Wilkes wrote: - Original Message - From: katja katjavet...@gmail.com To: pd-list@iem.at Cc: Sent: Thursday, November 3, 2011 6:10 AM Subject: Re: [PD] how to capture window-related mouse-events when toxy is discontinued? On Thu, Nov 3

Re: [PD] how to capture window-related mouse-events when toxy is discontinued?

2011-11-09 Thread Mathieu Bouchard
Le 2011-11-09 à 12:39:00, Hans-Christoph Steiner a écrit : That's what TkZinc is: a Tk canvas written to use OpenGL. http://www.tkzinc.org In 2007, Chun wanted to look into TkZinc. I came up with the idea of a compatibility layout class, so that TkZinc could become a drop-in replacement for

Re: [PD] how to capture window-related mouse-events when toxy is discontinued?

2011-11-09 Thread Mathieu Bouchard
Le 2011-11-09 à 09:33:00, Jonathan Wilkes a écrit : Similarly: If a 2D geo in a gem window is the most efficient way to draw an object, why not just make canvases be opengl windows? Are we comparing percentages with an equivalent 2-D GEO ? E.g. a radiobutton that has n=8 needs between 9 and

Re: [PD] how to capture window-related mouse-events when toxy is discontinued?

2011-11-09 Thread Hans-Christoph Steiner
On Nov 9, 2011, at 12:54 PM, Mathieu Bouchard wrote: Le 2011-11-09 à 12:39:00, Hans-Christoph Steiner a écrit : That's what TkZinc is: a Tk canvas written to use OpenGL. http://www.tkzinc.org In 2007, Chun wanted to look into TkZinc. I came up with the idea of a compatibility layout

Re: [PD] how to capture window-related mouse-events when toxy is discontinued?

2011-11-09 Thread Jonathan Wilkes
- Original Message - From: Mathieu Bouchard ma...@artengine.ca To: Jonathan Wilkes jancs...@yahoo.com Cc: katja katjavet...@gmail.com; pd-list@iem.at pd-list@iem.at Sent: Wednesday, November 9, 2011 1:00 PM Subject: Re: [PD] how to capture window-related mouse-events when toxy

Re: [PD] how to capture window-related mouse-events when toxy is discontinued?

2011-11-09 Thread Mathieu Bouchard
Le 2011-11-09 à 14:01:00, Hans-Christoph Steiner a écrit : ANother idea is to make a [tkzinc] object that allows people to make all sorts of GUI objects in Pd that are built on top of TkZinc's OpenGL. You mean that each [tkzinc] object would be a TkCanvas-like widget embedded inside of the

Re: [PD] how to capture window-related mouse-events when toxy is discontinued?

2011-11-09 Thread Mathieu Bouchard
Le 2011-11-09 à 11:10:00, Jonathan Wilkes a écrit : In katja's demo the radiobutton had n=1, so I guess it's just two rectangles. How useful and typical is a radiobutton with n=1 ? The demo ought to have something realistic to it.

Re: [PD] how to capture window-related mouse-events when toxy is discontinued?

2011-11-09 Thread Jonathan Wilkes
- Original Message - From: Mathieu Bouchard ma...@artengine.ca To: Jonathan Wilkes jancs...@yahoo.com Cc: katja katjavet...@gmail.com; pd-list@iem.at pd-list@iem.at Sent: Wednesday, November 9, 2011 2:45 PM Subject: Re: [PD] how to capture window-related mouse-events when toxy

Re: [PD] how to capture window-related mouse-events when toxy is discontinued?

2011-11-09 Thread katja
On Wed, Nov 9, 2011 at 7:00 PM, Mathieu Bouchard ma...@artengine.ca wrote: Are we comparing percentages with an equivalent 2-D GEO ? E.g. a radiobutton that has n=8 needs between 9 and 12 canvas items. This has to translate to between 9 and 12 GEM Geos. How many geos were used in the GEM test 

Re: [PD] how to capture window-related mouse-events when toxy is discontinued?

2011-11-09 Thread Mathieu Bouchard
Le 2011-11-09 à 12:40:00, Jonathan Wilkes a écrit : How useful and typical is a radiobutton with n=1 ? Getting user input by dragging a rectangle is very useful and typical.  (See [cnv] help.) But does that work outside of [cnv], and does that work with radiobuttons ? Anyway, I think that

Re: [PD] how to capture window-related mouse-events when toxy is discontinued?

2011-11-09 Thread Jonathan Wilkes
- Original Message - From: Mathieu Bouchard ma...@artengine.ca To: Jonathan Wilkes jancs...@yahoo.com Cc: katja katjavet...@gmail.com; pd-list@iem.at pd-list@iem.at Sent: Wednesday, November 9, 2011 5:30 PM Subject: Re: [PD] how to capture window-related mouse-events when toxy

Re: [PD] how to capture window-related mouse-events when toxy is discontinued?

2011-11-09 Thread Mathieu Bouchard
Le 2011-11-09 à 15:39:00, Jonathan Wilkes a écrit : - Original Message - From: Mathieu Bouchard ma...@artengine.ca (why does it always look like you click «Forward» to do a reply ?) But does that work outside of [cnv], and does that work with radiobuttons ? If by that you mean

Re: [PD] how to capture window-related mouse-events when toxy is discontinued?

2011-11-09 Thread Mathieu Bouchard
Le 2011-11-09 à 21:57:00, katja a écrit : How many geos doesn't seem to matter much. A 'Gem gui object' could for example be a draggable geo with a texture, or a set of 5 geo's moving together when dragged. The cpu load caused by dragging is the same in both cases. It's like that whenever

Re: [PD] how to capture window-related mouse-events when toxy is discontinued?

2011-11-09 Thread Hans-Christoph Steiner
On Nov 9, 2011, at 2:44 PM, Mathieu Bouchard wrote: Le 2011-11-09 à 14:01:00, Hans-Christoph Steiner a écrit : ANother idea is to make a [tkzinc] object that allows people to make all sorts of GUI objects in Pd that are built on top of TkZinc's OpenGL. You mean that each [tkzinc] object

Re: [PD] how to capture window-related mouse-events when toxy is discontinued?

2011-11-05 Thread Mathieu Bouchard
Le 2011-11-02 à 08:19:00, Jonathan Wilkes a écrit : One thing is that any GUI objects created with [widget] cease to pass messages when the containing window gets unmapped. Is that a problem...? What problem does that cause ? Anyway, Pd does weird things with unmapped window... It deletes

Re: [PD] how to capture window-related mouse-events when toxy is discontinued?

2011-11-05 Thread Jonathan Wilkes
- Original Message - From: Mathieu Bouchard ma...@artengine.ca To: Jonathan Wilkes jancs...@yahoo.com Cc: katja katjavet...@gmail.com; pd-list@iem.at pd-list@iem.at Sent: Saturday, November 5, 2011 10:41 AM Subject: Re: [PD] how to capture window-related mouse-events when toxy

Re: [PD] how to capture window-related mouse-events when toxy is discontinued?

2011-11-05 Thread Mathieu Bouchard
Le 2011-11-05 à 08:20:00, Jonathan Wilkes a écrit : Well, if you threw a [tgl] into a subpatch or abstraction, got the object chain that it's in working, then closed that window and the [tgl] no longer passes messages, it is extremely likely that your patch will no longer work. Ok, you mean

Re: [PD] how to capture window-related mouse-events when toxy is discontinued?

2011-11-05 Thread Jonathan Wilkes
- Original Message - From: Mathieu Bouchard ma...@artengine.ca To: Jonathan Wilkes jancs...@yahoo.com Cc: katja katjavet...@gmail.com; pd-list@iem.at pd-list@iem.at Sent: Saturday, November 5, 2011 12:11 PM Subject: Re: [PD] how to capture window-related mouse-events when toxy

Re: [PD] how to capture window-related mouse-events when toxy is discontinued?

2011-11-04 Thread João Pais
I imagine if this were changed to tag the entire scalar and move it by tag, it would improve the performance quite a bit. that would be a revolution :) ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -

Re: [PD] how to capture window-related mouse-events when toxy is discontinued?

2011-11-04 Thread katja
On Fri, Nov 4, 2011 at 3:46 AM, Jonathan Wilkes jancs...@yahoo.com wrote: Oh, wow-- lines, polygons, and text of scalars get deleted and recreated every time they get moved.  This is what gets sent to the GUI for every motion event when dragging a scalar (in run mode here): .x291cf70.c

Re: [PD] how to capture window-related mouse-events when toxy is discontinued?

2011-11-04 Thread Jonathan Wilkes
- Original Message - From: katja katjavet...@gmail.com To: pd-list@iem.at Cc: Sent: Friday, November 4, 2011 5:23 AM Subject: Re: [PD] how to capture window-related mouse-events when toxy is discontinued? On Fri, Nov 4, 2011 at 3:46 AM, Jonathan Wilkes jancs...@yahoo.com

Re: [PD] how to capture window-related mouse-events when toxy is discontinued?

2011-11-04 Thread Mathieu Bouchard
Le 2011-11-04 à 07:37:00, Jonathan Wilkes a écrit : Functionally there is no difference between altering a polygon's shape and the way I am moving it. In Tk, to change the coordinates of a canvas-item, you don't have to delete it and recreate it. There's always a canvas-method named « coords 

Re: [PD] how to capture window-related mouse-events when toxy is discontinued?

2011-11-04 Thread Jonathan Wilkes
- Original Message - From: Mathieu Bouchard ma...@artengine.ca To: Jonathan Wilkes jancs...@yahoo.com Cc: katja katjavet...@gmail.com; pd-list@iem.at pd-list@iem.at Sent: Friday, November 4, 2011 1:18 PM Subject: Re: [PD] how to capture window-related mouse-events when toxy

Re: [PD] how to capture window-related mouse-events when toxy is discontinued?

2011-11-04 Thread Mathieu Bouchard
Le 2011-11-04 à 10:37:00, Jonathan Wilkes a écrit : It seems like it does redraw stuff between the delete and create for a scalar with enough canvas items associated with it.  For example, if you make a ds array where each element is a little 10x10 rectangle and plot it with an array size

Re: [PD] how to capture window-related mouse-events when toxy is discontinued?

2011-11-04 Thread Hans-Christoph Steiner
: Thursday, November 3, 2011 6:10 AM Subject: Re: [PD] how to capture window-related mouse-events when toxy is discontinued? On Thu, Nov 3, 2011 at 1:30 AM, Jonathan Wilkes jancs...@yahoo.com wrote: How does the cpu usage in my demo! compare to your patch where you use

Re: [PD] how to capture window-related mouse-events when toxy is discontinued?

2011-11-03 Thread katja
On Thu, Nov 3, 2011 at 1:30 AM, Jonathan Wilkes jancs...@yahoo.com wrote: How does the cpu usage in my demo compare to your patch where you use a radiobutton? Here's a cpu load comparison of objects dragged continuously (on intel mac 2GHz): polygon in movable_box2.pd: 23 % polygon in

Re: [PD] how to capture window-related mouse-events when toxy is discontinued?

2011-11-03 Thread Jonathan Wilkes
- Original Message - From: katja katjavet...@gmail.com To: pd-list@iem.at Cc: Sent: Thursday, November 3, 2011 6:10 AM Subject: Re: [PD] how to capture window-related mouse-events when toxy is discontinued? On Thu, Nov 3, 2011 at 1:30 AM, Jonathan Wilkes jancs...@yahoo.com

Re: [PD] how to capture window-related mouse-events when toxy is discontinued?

2011-11-03 Thread João Pais
: Sent: Thursday, November 3, 2011 6:10 AM Subject: Re: [PD] how to capture window-related mouse-events when toxy is discontinued? On Thu, Nov 3, 2011 at 1:30 AM, Jonathan Wilkes jancs...@yahoo.com wrote: How does the cpu usage in my demo compare to your patch where you use a radiobutton

Re: [PD] how to capture window-related mouse-events when toxy is discontinued?

2011-11-03 Thread Hans-Christoph Steiner
an example, but don't have any time for now. - Original Message - From: katja katjavet...@gmail.com To: pd-list@iem.at Cc: Sent: Thursday, November 3, 2011 6:10 AM Subject: Re: [PD] how to capture window-related mouse-events when toxy is discontinued? On Thu, Nov 3, 2011 at 1:30 AM

Re: [PD] how to capture window-related mouse-events when toxy is discontinued?

2011-11-03 Thread Jonathan Wilkes
jmmmp...@googlemail.com Cc: katja katjavet...@gmail.com; pd-list@iem.at pd-list@iem.at; Jonathan Wilkes jancs...@yahoo.com Sent: Thursday, November 3, 2011 11:07 AM Subject: Re: [PD] how to capture window-related mouse-events when toxy is discontinued? I doubt that Tcl/Tk's drawing code

Re: [PD] how to capture window-related mouse-events when toxy is discontinued?

2011-11-03 Thread Ivica Ico Bukvic
: katja katjavet...@gmail.com; pd-list@iem.at pd-list@iem.at; Jonathan Wilkes jancs...@yahoo.com Sent: Thursday, November 3, 2011 11:07 AM Subject: Re: [PD] how to capture window-related mouse-events when toxy is discontinued? I doubt that Tcl/Tk's drawing code is being overloaded. Instead

Re: [PD] how to capture window-related mouse-events when toxy is discontinued?

2011-11-03 Thread Hans-Christoph Steiner
jancs...@yahoo.com Sent: Thursday, November 3, 2011 11:07 AM Subject: Re: [PD] how to capture window-related mouse-events when toxy is discontinued? I doubt that Tcl/Tk's drawing code is being overloaded. Instead, try running path/to/pd -stderr -d 3 and you'll see that 'pd

Re: [PD] how to capture window-related mouse-events when toxy is discontinued?

2011-11-03 Thread Jonathan Wilkes
- Original Message - From: katja katjavet...@gmail.com To: pd-list@iem.at Cc: Sent: Wednesday, November 2, 2011 7:58 PM Subject: Re: [PD] how to capture window-related mouse-events when toxy is discontinued? On Wed, Nov 2, 2011 at 11:08 PM, Jonathan Wilkes jancs...@yahoo.com

[PD] how to capture window-related mouse-events when toxy is discontinued?

2011-11-02 Thread katja
Hello, It happens to be the case that mouse-event capturing as done by [toxy/tot] is crucial to my Pd performance setups. The object gives xy positions relative to a window, not to the screen(s). These coordinates are used to move GUI's around on a large xy-field, like a multiple-control Kaoss

Re: [PD] how to capture window-related mouse-events when toxy is discontinued?

2011-11-02 Thread Mathieu Bouchard
Le 2011-11-02 à 15:24:00, katja a écrit : It happens to be the case that mouse-event capturing as done by [toxy/tot] is crucial to my Pd performance setups. The object gives xy positions relative to a window, not to the screen(s). http://gridflow.ca/help/gf/mouse_spy-help.html The toxy lib

Re: [PD] how to capture window-related mouse-events when toxy is discontinued?

2011-11-02 Thread IOhannes m zmoelnig
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 2011-11-02 15:24, katja wrote: Hello, It happens to be the case that mouse-event capturing as done by [toxy/tot] is crucial to my Pd performance setups. iemguts' [receivecanvas] might help you. fgmasdr IOhannes -BEGIN PGP SIGNATURE-

Re: [PD] how to capture window-related mouse-events when toxy is discontinued?

2011-11-02 Thread Hans-Christoph Steiner
On Nov 2, 2011, at 10:39 AM, Mathieu Bouchard wrote: Le 2011-11-02 à 15:24:00, katja a écrit : It happens to be the case that mouse-event capturing as done by [toxy/tot] is crucial to my Pd performance setups. The object gives xy positions relative to a window, not to the screen(s).

Re: [PD] how to capture window-related mouse-events when toxy is discontinued?

2011-11-02 Thread Hans-Christoph Steiner
On Nov 2, 2011, at 10:24 AM, katja wrote: Hello, It happens to be the case that mouse-event capturing as done by [toxy/tot] is crucial to my Pd performance setups. The object gives xy positions relative to a window, not to the screen(s). These coordinates are used to move GUI's around on

Re: [PD] how to capture window-related mouse-events when toxy is discontinued?

2011-11-02 Thread Jonathan Wilkes
- Original Message - From: Mathieu Bouchard ma...@artengine.ca To: katja katjavet...@gmail.com Cc: pd-list@iem.at Sent: Wednesday, November 2, 2011 10:39 AM Subject: Re: [PD] how to capture window-related mouse-events when toxy is discontinued? Le 2011-11-02 à 15:24:00, katja

Re: [PD] how to capture window-related mouse-events when toxy is discontinued?

2011-11-02 Thread Jonathan Wilkes
- Original Message - From: katja katjavet...@gmail.com To: pd-list@iem.at Cc: Sent: Wednesday, November 2, 2011 10:24 AM Subject: [PD] how to capture window-related mouse-events when toxy is discontinued? Hello, It happens to be the case that mouse-event capturing as done

Re: [PD] how to capture window-related mouse-events when toxy is discontinued?

2011-11-02 Thread João Pais
The toxy lib is discontinued in Pd-extended 0.43. Tried to find an alternative, asked on the Pd forum. No solution so far. I explored gem for GUI purposes, but this introduces even more dependencies. Data-structures seem an option at first sight, but can not provide large reactive area's (only

Re: [PD] how to capture window-related mouse-events when toxy is discontinued?

2011-11-02 Thread Jonathan Wilkes
- Original Message - From: João Pais jmmmp...@googlemail.com To: katja katjavet...@gmail.com; pd-list@iem.at pd-list@iem.at; Jonathan Wilkes jancs...@yahoo.com Cc: Sent: Wednesday, November 2, 2011 12:44 PM Subject: Re: [PD] how to capture window-related mouse-events when toxy

Re: [PD] how to capture window-related mouse-events when toxy is discontinued?

2011-11-02 Thread João Pais
Well, instead of whole polygon I should say all the visualizations associated with a scalar. In edit mode you'll get a bounding box around the scalar and you can drag it just as any pd object. The [struct] outlet will notify you with a displace msg when you do this, and you can use the

Re: [PD] how to capture window-related mouse-events when toxy is discontinued?

2011-11-02 Thread IOhannes m zmoelnig
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 2011-11-02 18:45, katja wrote: Wow, so many answers in so short time. Thank you all. To clarify, the moving squares in the video are sliders and / or radiobuttons, and they are moved in runtime. Attached is a patch demonstrating the idea,

Re: [PD] how to capture window-related mouse-events when toxy is discontinued?

2011-11-02 Thread katja
On Wed, Nov 2, 2011 at 6:54 PM, IOhannes m zmoelnig zmoel...@iem.at wrote: I never knew about the existence of [iemguts/receivecanvas]. It has no helpfile. I'd be happy to make one though. Hopefully the iem libs will stay a bit longer than toxy, though they're now categorized as 'unsupported,

Re: [PD] how to capture window-related mouse-events when toxy is discontinued?

2011-11-02 Thread Hans-Christoph Steiner
On Nov 2, 2011, at 4:15 PM, katja wrote: On Wed, Nov 2, 2011 at 6:54 PM, IOhannes m zmoelnig zmoel...@iem.at wrote: I never knew about the existence of [iemguts/receivecanvas]. It has no helpfile. I'd be happy to make one though. Hopefully the iem libs will stay a bit longer than toxy,

Re: [PD] how to capture window-related mouse-events when toxy is discontinued?

2011-11-02 Thread katja
Update: replaced [toxy/tot] with [iemguts/receivecanvas] in various patches, it is indeed the perfect alternative for capturing mouse-events. Even messages 'motion', 'mouse' and 'mouseup' are identical. Hans, it could also be used in [hcs/mouse_region], which currently does not work in 0.43.

Re: [PD] how to capture window-related mouse-events when toxy is discontinued?

2011-11-02 Thread Jonathan Wilkes
- Original Message - From: katja katjavet...@gmail.com To: pd-list@iem.at Cc: Sent: Wednesday, November 2, 2011 1:45 PM Subject: Re: [PD] how to capture window-related mouse-events when toxy is discontinued? Wow, so many answers in so short time. Thank you all. To clarify

Re: [PD] how to capture window-related mouse-events when toxy is discontinued?

2011-11-02 Thread katja
On Wed, Nov 2, 2011 at 11:08 PM, Jonathan Wilkes jancs...@yahoo.com The attached allows the 50x30 polygon to be click-dragged anywhere within the polygon-- basically ds hotspots happen in a 10x10 quadrant within the polygon when an x/y pair is specified with a field variable, so I'm forcing

Re: [PD] how to capture window-related mouse-events when toxy is discontinued?

2011-11-02 Thread Jonathan Wilkes
- Original Message - From: katja katjavet...@gmail.com To: pd-list@iem.at Cc: Sent: Wednesday, November 2, 2011 7:58 PM Subject: Re: [PD] how to capture window-related mouse-events when toxy is discontinued? On Wed, Nov 2, 2011 at 11:08 PM, Jonathan Wilkes jancs...@yahoo.com