Ah, understood.  Thanks for the nice code explanation and references... they both really help.  <div><br></div><div>I noticed that <span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; color: rgb(34, 34, 34); ">t_canvasenvironment remains privately defined, so it&#39;s difficult to use this struct.  To get the dollarzero, I saw this works:</span></div>
<meta charset="utf-8"><div><br></div><div><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="Content-Style-Type" content="text/css">
<title></title>
<meta name="Generator" content="Cocoa HTML Writer">
<meta name="CocoaVersion" content="1038.35">
<style type="text/css">
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo}
span.s1 {color: #cd00a3}
span.Apple-tab-span {white-space:pre}
</style>


<p class="p1">canvas_setcurrent(x_canvas);</p>
<p class="p1"><span class="s1">int</span> dzero = canvas_getdollarzero();</p></div><div><br></div><div>Cheers,</div><div>Rich</div><div><br><div class="gmail_quote"><br></div></div>