<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px"><div id="yui_3_16_0_1_1441224577143_9584" dir="ltr">Sorry, I didn't clarify that these are brand new changes I made in my port of the GUI away from tcl/tk to nw.js.  I developed them as a diversion from the otherwise mind-numbing task of measuring fonts, fixing scrollbars, etc.</div><div id="yui_3_16_0_1_1441224577143_9586" dir="ltr"><br></div><div id="yui_3_16_0_1_1441224577143_9587" dir="ltr">I'll try to post a screencast later.</div><div id="yui_3_16_0_1_1441224577143_9588" dir="ltr"><br></div><div id="yui_3_16_0_1_1441224577143_9598" dir="ltr">-Jonathan<br></div><div id="yui_3_16_0_1_1441224577143_9596" dir="ltr"><br></div><div id="yui_3_16_0_1_1441224577143_5851"><span></span></div>  <br><div class="qtdSeparateBR"><br><br></div><div style="display: block;" class="yahoo_quoted"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div dir="ltr"> <font face="Arial" size="2"> On Wednesday, September 2, 2015 2:29 PM, jamal crawford <threen52@ml1.net> wrote:<br> </font> </div>  <br><br> <div class="y_msg_container"><div id="yiv4513229928">


<title></title>

<div><div>hey list, Jonathan.<br></div>
<div> </div>
<blockquote><div>You start with a struct:[struct foo float x float y canvas a b]<br></div>
<div>Then create a scalar from this struct.<br></div>
<div>The scalar will have an "x" value, a "y" value, and a canvas "a" which gets filled with the contents of an abstraction "b.pd" that is somewhere in Pd's search path.<br></div>
<div>Now here's the neat thing-- inside the newly instantiated "b.pd" you can do this:<br></div>
<div>[loadbang]|[field x]|[print x]<br></div>
<div> </div>
</blockquote><div> </div>
<blockquote><div><pre class="yiv4513229928u-article" style="color:rgb(31, 31, 31);font-family:inherit;font-stretch:inherit;white-space:pre-wrap;word-wrap:break-word;">imagine you have a drawing instruction like this:[draw rect 0 0 20 20]
When you create the scalar you get a little black box on a canvas.
With a canvas field like I described, you can right-click the scalar and choose "Open" to show a canvas window.</pre></div>
</blockquote><div> </div>
<div>while trying to create [struct foo float x float y canvas a b], i get: canvas: no such type, using pd 0.46.6<br></div>
<div>what am I missing?<br></div>
<div> </div>
<div>~/.jc</div>
<div> </div>
</div>

</div><br><br></div>  </div> </div>  </div></div></body></html>