Hallo, Jamie Bullock hat gesagt: // Jamie Bullock wrote: > I'm just starting to get my hands dirty with data structures. In > particular GOP data structures. Inspired by Chris Mccormick's wonderful > s- abstractions, I'm trying to make a simple GOP transport, with > graphical play/stop/pause rewind etc. controls. The main showstopper at > the moment is that I don't seem to be able to make the UI elements > 'clickable'. > > Using [tot] I can detect the mouse position when clicking inside the > subpatch, but when the graph is on parent, this doesn't work. Of course, > I don't want to use [tot] in the parent, because the GOP subpatch might > well move. > > Is there some other way to make a clickable element? Chris's s-env > abstraction seems to detect ctrl-click, but It isn't obvious to me how > this is achieved...
Nothing special here: ctrl-click is a standard feature of "array" fields in a data structure definition. You use it to add elements to the array. Some other click-detections things require more manual work: The [struct] object has an outlet that will send out messages if a pointer of that type was selected or changed. Just connect a [print] there to see what's happening. You can use this with [route ...] to trigger actions when data structures are changed. Ciao -- Frank Barknecht _ ______footils.org_ __goto10.org__ _______________________________________________ [email protected] mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
