<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Hi Mark,<br>
</p>
<div class="moz-cite-prefix">El 14/12/24 a las 22:42, Mark Volkmann
via Cuis-dev escribió:<br>
</div>
<blockquote type="cite"
cite="mid:CAFfRWnVwJPzjnCuseF4_0DBEH2_boenV2yCQZndjXYEbuxeBkw@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">
<div>
<div>I'm trying to understand what is required to create a
subclass of<span class="gmail-Apple-converted-space"> </span><font
face="monospace">BoxMorph</font>. I know I need to
implement the<span class="gmail-Apple-converted-space"> </span><font
face="monospace">drawOn:</font><span
class="gmail-Apple-converted-space"> </span>instance
method. And I believe that depending on how I implement
that, I need to implement the<span
class="gmail-Apple-converted-space"> </span><font
face="monospace">requiresVectorCanvas</font><span
class="gmail-Apple-converted-space"> </span>method to
return true.</div>
<div><br>
</div>
<div>Is anything else required? I think more must be required,
because I can't get a basic example to work doing only those
things.</div>
</div>
</div>
</blockquote>
Have you tried browsing BoxMorph hierarchy and looking at its
subclasses?<br>
<blockquote type="cite"
cite="mid:CAFfRWnVwJPzjnCuseF4_0DBEH2_boenV2yCQZndjXYEbuxeBkw@mail.gmail.com">
<div dir="ltr">
<div>
<div><br>
</div>
<div>I'd especially appreciate it if someone can tell me how I
could have determined the answer on my own by looking at the
source. I tried to do that and failed.</div>
</div>
</div>
</blockquote>
<p>How is it failing? Perhaps attach example of what you are trying
to do ... it shouldn't be much more than implementing a #drawOn:
method ...<br>
</p>
<p> Mariano<br>
</p>
</body>
</html>