<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; "><BR><DIV><DIV>On Nov 5, 2007, at 12:46 PM, Luke Iannini (pd) wrote:</DIV><BR class="Apple-interchange-newline"><BLOCKQUOTE type="cite"><DIV><BLOCKQUOTE class="gmail_quote" style="margin:0;margin-left:0.8ex;border-left:1px #ccc solid;padding-left:1ex">I think it would be possible to do something like that in Pd and the<BR>iemguis, since you can move them with messages. <BR><BR>There is an alpha version of [cursor] in today's build which will<BR>give you the mouse cursor position.  I just got some ideas of how to<BR>do it better, so it should be better tomorrow. :)<BR><BR>If someone wants to try to do this, I am willing to do the work to <BR>fill in the gaps in Pd so that it's possible.</BLOCKQUOTE><DIV> </DIV><BR> </DIV>Hm, if it was possible to do in Pd I'd /absolutely, without a doubt/ implement it.  Cursor position is gettable with toxy, by the way?<BR></BLOCKQUOTE><DIV><BR class="khtml-block-placeholder"></DIV><DIV>[tot] can get the mouse pointer posution, but only for when the mouse pointer is in a window. The idea of [cursor] is to get the mouse pointer coords always.</DIV><BR><BLOCKQUOTE type="cite"> <DIV>The iemguis allowing movement by messages is cool, but it wouldn't help for regular objects of course.  Offhand the pieces needed would be:</DIV><DIV>Query Pd for the IDs of the currently selected objects</DIV> <DIV>Query Pd for the position of an object id</DIV><DIV>Move any object by message.</DIV><DIV><BR> </DIV><DIV>I guess you'd need namecanvas in every patch being manipulated (hm, how would you capture the key commands?  [key] needs focus, and [hid] wouldn't know what's focused?)... </DIV></BLOCKQUOTE></DIV><BR><DIV> <SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; ">I meant start this for GUI objects not all objects (just yet).  That's a much bigger  question, but  I just thought a possibility that I'll look into.</SPAN></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Also, if you are interested in more advanced GUI tweaks, check out toxy, there is a lot of stuff you can do with it.  There is not help file for [tow] or [widget], so anything you might create would be a vast improvement. [tot]'s help patch could really use more examples.  In Pd-extended, there are a bunch of examples in Help-&gt;Browser-&gt;examples-&gt;toxy.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; ">.hc<BR class="Apple-interchange-newline"><DIV><BR class="khtml-block-placeholder"></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><BR></DIV><DIV>----------------------------------------------------------------------------<BR></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>'You people have such restrictive dress for women,’ she said, hobbling away in three inch heels and panty hose to finish out another pink-collar temp pool day.  - “Hijab Scene #2", by Mohja Kahf</DIV><BR class="Apple-interchange-newline"></SPAN> </DIV><BR></BODY></HTML>