Hi all
Is it possible to have a scalar with a settable position, but which cannot be moved with mouse interaction?
I figured I can use arrays to create grids of immutable scalars, but then I don't know how I can detect which specific element/scalar has been clicked on.
Thanks, Roman
when you have a point defined by a variable, afaik it's always open to
user interaction. but, check the help for drawpolygon, the -x argument. I
never tried it.
btw, a scalar is only a unit, which can have any graphic, text, symbol usw
you define in the template. for these questions it's better if you say
which class of element you're using. drawpolygon, usw usw
Hi all
Is it possible to have a scalar with a settable position, but which cannot be moved with mouse interaction?
I figured I can use arrays to create grids of immutable scalars, but then I don't know how I can detect which specific element/scalar has been clicked on.
Thanks, Roman
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management ->
http://lists.puredata.info/listinfo/pd-list
On Die, 2013-05-28 at 13:40 +0200, João Pais wrote:
when you have a point defined by a variable, afaik it's always open to
user interaction. but, check the help for drawpolygon, the -x argument. I
never tried it.
Yeah, -x works. As mentioned by Martin, it makes the struct not report clicks anymore.
I came up with another solution, somewhat similar to what Johannes posted in the previous thread. I store the position at the time of the 'click' event and use the coordinates to reset the position on 'change' events.
btw, a scalar is only a unit, which can have any graphic, text, symbol usw
you define in the template. for these questions it's better if you say
which class of element you're using. drawpolygon, usw usw
Sorry for not being clear. I was actually using [filledpolygon].
Roman
Hi all
Is it possible to have a scalar with a settable position, but which cannot be moved with mouse interaction?
I figured I can use arrays to create grids of immutable scalars, but then I don't know how I can detect which specific element/scalar has been clicked on.
Thanks, Roman
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management ->
http://lists.puredata.info/listinfo/pd-list
That's what I did too :)
M
On Tue, May 28, 2013 at 05:22:06PM +0200, Roman Haefeli wrote:
On Die, 2013-05-28 at 13:40 +0200, João Pais wrote:
when you have a point defined by a variable, afaik it's always open to
user interaction. but, check the help for drawpolygon, the -x argument. I
never tried it.Yeah, -x works. As mentioned by Martin, it makes the struct not report clicks anymore.
I came up with another solution, somewhat similar to what Johannes posted in the previous thread. I store the position at the time of the 'click' event and use the coordinates to reset the position on 'change' events.
btw, a scalar is only a unit, which can have any graphic, text, symbol usw
you define in the template. for these questions it's better if you say
which class of element you're using. drawpolygon, usw uswSorry for not being clear. I was actually using [filledpolygon].
Roman
Hi all
Is it possible to have a scalar with a settable position, but which cannot be moved with mouse interaction?
I figured I can use arrays to create grids of immutable scalars, but then I don't know how I can detect which specific element/scalar has been clicked on.
Thanks, Roman
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management ->
http://lists.puredata.info/listinfo/pd-list
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
On 05/28/2013 12:11 PM, Roman Haefeli wrote:
Hi all
Is it possible to have a scalar with a settable position, but which cannot be moved with mouse interaction?
yes, by adding a -x to the drawpolygon in the template.
I figured I can use arrays to create grids of immutable scalars, but then I don't know how I can detect which specific element/scalar has been clicked on.
unfortunately, with -x the struct does no longer report clicks. so it is good for making a ruler/grid which does not interfere with the data, but not good for making a navigation/whatever.
bis denn! martin
From: Roman Haefeli reduzent@gmail.com To: pd-list pd-list@iem.at Sent: Tuesday, May 28, 2013 6:11 AM Subject: [PD] more about DS
Hi all
Is it possible to have a scalar with a settable position, but which
cannot be moved with mouse interaction?
There's a flag for that in the drawing instructions. (Should be listed in the PDDP help files.)
I figured I can use arrays to create grids of immutable scalars, but
then I don't know how I can detect which specific element/scalar has been clicked on.
You can't atm.
-Jonathan
Thanks, Roman