[PD] how to capture window-related mouse-events when toxy is discontinued?
Jonathan Wilkes
jancsika at yahoo.com
Fri Nov 4 03:46:26 CET 2011
----- Original Message -----
> From: katja <katjavetter at gmail.com>
> To: pd-list at 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 <jancsika at 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
>> hotspots for the entire polygon by spacing all field value coordinates no
> more
>> than 10 pixels from each other. (You can overlay a simpler polygon if you
> want
>> a cleaner-looking control surface.)
>
> That's a lovely demo Jonathan. The small squares have their own
> esthetic. This approach is less hacky than my moving radiobuttons. Do
> you use it in practice, as GUI elements? It is very heavy on cpu.
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 delete curve291f238
.x291cf70.c delete curve291f238
.x291cf70.c create polygon\
217 175\
227 175\
227 185\
217 185\
-width 1.000000\
-fill #ff0000 -outline #000000\
-tags curve291f238
.x291cf70.c create line\
172 130\
272 130\
272 230\
172 230\
172 130\
-width 1.000000\
-fill #000000\
-tags curve291f238
I imagine if this were changed to tag the entire scalar and move it by tag,
it would improve the performance quite a bit.
-Jonathan
>
> Katja
>
> _______________________________________________
> Pd-list at iem.at mailing list
> UNSUBSCRIBE and account-management ->
> http://lists.puredata.info/listinfo/pd-list
>
More information about the Pd-list
mailing list