<div dir="ltr">Hi, <div><br></div><div>I would like to retrieve at any time the pointer to the t_canvas containing my object.</div><div>Is that possible ?</div><div>I know I can retrieve it with something like : </div><div><div>    t_glist *glist=(t_glist *)canvas_getcurrent();</div><div>    t_canvas *canvas=(t_canvas*)glist_getcanvas(glist);</div></div><div>in the myobject_new() method.</div><div><br></div><div>But the same give me a (nil) t_canvas pointer outside the new() method.</div><div><br></div><div>Thanks in advance.</div><div><br></div><div>Antoine</div><div><br></div><div><br></div><div><div><div class="gmail_signature">--<br>do it yourself                       <br><a href="http://antoine.villeret.free.fr" target="_blank">http://antoine.villeret.free.fr</a><br></div></div>
</div></div>