[PD] two sliders on top of each other (XY-Controller)?
IOhannes m zmoelnig
zmoelnig at iem.at
Thu May 12 14:07:14 CEST 2022
On 5/12/22 13:54, Peter P. wrote:
> Hi list,
> jus tried if two sliders placed on top of each other could work as a
> simple XY-contoller. They do not, but more interestingly it is the lower
> of the two slider that receives the mouse clicks while the upper is
> visible. Is this intentional?
for example see the [pd example discrete] in the hslider help-patch.
> Could GUI objects be transparent in color as well as for clicks in any
i'm not sure i understand the question.
as for transparent colors, it seems there's no definitive answer.
canvas-widgets (for lack of a better word) can be made transparent if
they have no (fill) color at all (like ordinary [object] boxes), but
iemguis always have a fill color (and the color picker has no "no color"
also iirc, *some* iemguis might actually use the object color to hide
things (most notably the vu-meter, although you are probably not talking
afaik, there definitely isn't any "alpha" channel available in Tcl/Tk
(so no semi-transparency)
> I know about the canvas-objects reporting their positions (and it would
> be cool if they would report mouse-downs and -ups as well), but don't
> like the fact that I have to be in edit mode to move them.
in any case: i don't really think that the [cnv] is the proper object
for this though (it's main purpose is creating solid colored rectangles;
and having them respond to mouse interaction, will make them quite
the iemgui *library* (available via deken, but i don't know whether it
still works with recent Pd) has an [iem_event] object that i think does
what you want.
something like this might be a good addition to Pd-vanilla.
> It seems there is no other vanilla way for xy-controllers then...
data structures, obviously.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 840 bytes
Desc: OpenPGP digital signature
More information about the Pd-list